Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c89a50 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Rafael J. Wysocki
Browse files

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: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 72081624
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -525,8 +525,7 @@ static int _request_firmware(const struct firmware **firmware_p,
	if (!firmware) {
		dev_err(device, "%s: kmalloc(struct firmware) failed\n",
			__func__);
		retval = -ENOMEM;
		goto out;
		return -ENOMEM;
	}

	if (fw_get_builtin_firmware(firmware, name)) {