Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1303898 > unrolled thread

Re: [PATCH v2 4/5] firmware: actually return NULL on failed request_firmware_nowait()

Started byShuah Khan <shuahkh@osg.samsung.com>
First post2016-01-07 22:00 +0100
Last post2016-01-07 22:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 4/5] firmware: actually return NULL on failed  request_firmware_nowait() Shuah Khan <shuahkh@osg.samsung.com> - 2016-01-07 22:00 +0100

#1303898 — Re: [PATCH v2 4/5] firmware: actually return NULL on failed request_firmware_nowait()

FromShuah Khan <shuahkh@osg.samsung.com>
Date2016-01-07 22:00 +0100
SubjectRe: [PATCH v2 4/5] firmware: actually return NULL on failed request_firmware_nowait()
Message-ID<qOpP5-4VR-23@gated-at.bofh.it>
On 12/09/2015 03:50 PM, Brian Norris wrote:
> The kerneldoc for request_firmware_nowait() says that it may call the
> provided cont() callback with @fw == NULL, if the firmware request
> fails. However, this is not the case when called with an empty string
> (""). This case is short-circuited by the 'name[0] == '\0'' check
> introduced in commit 471b095dfe0d ("firmware_class: make sure fw requests
> contain a name"), so _request_firmware() never gets to set the fw to
> NULL.
> 

Thanks for the patch. Applied to linux-kselftest next for 4.5-rc1.

thanks,
-- Shuah
-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web