PM / Sleep: Fix read_unlock_usermodehelper() call.
Commit b298d289
"PM / Sleep: Fix freezer failures due to racy usermodehelper_is_disabled()"
added read_unlock_usermodehelper() but read_unlock_usermodehelper() is called
without read_lock_usermodehelper() when kmalloc() failed.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
72081624d5
commit
e4c89a508f
@@ -525,8 +525,7 @@ static int _request_firmware(const struct firmware **firmware_p,
|
|||||||
if (!firmware) {
|
if (!firmware) {
|
||||||
dev_err(device, "%s: kmalloc(struct firmware) failed\n",
|
dev_err(device, "%s: kmalloc(struct firmware) failed\n",
|
||||||
__func__);
|
__func__);
|
||||||
retval = -ENOMEM;
|
return -ENOMEM;
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fw_get_builtin_firmware(firmware, name)) {
|
if (fw_get_builtin_firmware(firmware, name)) {
|
||||||
|
Reference in New Issue
Block a user