PM / Sleep: Fix read_unlock_usermodehelper() call.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 23 Jan 2012 20:59:08 +0000 (21:59 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 23 Jan 2012 20:59:08 +0000 (21:59 +0100)
commite4c89a508f4385a0cd8681c2749a2cd2fa476e40
tree0fd1683eb20ae32d80078fb8a585178838e1d242
parent72081624d5ad3cf56deb6e727b78c4e7a55e4eec
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>
drivers/base/firmware_class.c