From: Rafael J. Wysocki Date: Wed, 28 Mar 2012 21:29:45 +0000 (+0200) Subject: firmware_class: Rework usermodehelper check X-Git-Tag: v3.4-rc2~19^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe2e39d8782d885755139304d8dba0b3e5bfa878;p=pandora-kernel.git firmware_class: Rework usermodehelper check Instead of two functions, read_lock_usermodehelper() and usermodehelper_is_disabled(), used in combination, introduce usermodehelper_read_trylock() that will only return with umhelper_sem held if usermodehelper_disabled is unset (and will return -EAGAIN otherwise) and make _request_firmware() use it. Rename read_unlock_usermodehelper() to usermodehelper_read_unlock() to follow the naming convention of the new function. Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman Cc: stable@vger.kernel.org --- Reading git-diff-tree failed