]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: fix detecting error on register_reboot_notifier()
authorLuis R. Rodriguez <mcgrof@kernel.org>
Mon, 20 Nov 2017 17:45:34 +0000 (09:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Nov 2017 10:07:00 +0000 (11:07 +0100)
commit561a10b6a15b531de359ccfc489488c733bb2821
treeccac2a42a1a46fd34584ede08e1e2abc852c9fc5
parent6bb9cf3aa3edf5968877d3f7863e232d4b9394a4
firmware: fix detecting error on register_reboot_notifier()

register_reboot_notifier() can fail, detect this and address this
failure. This has been broken since v3.11, however the chances of
this failing here is really low.

Fixes: fe304143b0c3d ("firmware: Avoid deadlock of usermodehelper lock at shutdown")
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c