]> git.baikalelectronics.ru Git - kernel.git/commit
orinoco: do not resgister NULL pm_notifier function
authorAndrey Borzenkov <arvidjaar@mail.ru>
Sun, 15 Feb 2009 09:51:18 +0000 (12:51 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Feb 2009 18:17:51 +0000 (13:17 -0500)
commit1f0cf235998cc51e0f31fcc0cf08b978eb340af0
treec0ce0923c60ee3d4b4a83e5c919564634a0c3555
parent0f08b8e1289d6ab3fd61128948c4e1a7e61bcddd
orinoco: do not resgister NULL pm_notifier function

With DEBUG_NOTIFIERS it results in

[11330.890966] WARNING: at /home/bor/src/linux-git/kernel/notifier.c:88
notifier_call_chain+0x91/0xa0()
[11330.890977] Hardware name: PORTEGE 4000
[11330.890983] Invalid notifier called! ...

Without DEBUG_NOTIFIERS it most likely crashes on NULL pointer.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Acked-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/orinoco.c