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)
commit5c138dcee7d4a9e68cce546a45968bbf5dbfce80
treec0ce0923c60ee3d4b4a83e5c919564634a0c3555
parent486a87f1e5624096bd1c09e9e716239597d48dca
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