br2684: fix scheduling while atomic
authorKarl Hiramoto <karl@hiramoto.org>
Thu, 23 Sep 2010 01:50:54 +0000 (01:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 01:29:18 +0000 (18:29 -0700)
commita3d6713fbd2ccb50898a6f88664da96a7857c039
treee772805828ad8c862c10b1845878baffbb11248e
parentca9a783575d2affed30ef27a3427a7705527ddac
br2684: fix scheduling while atomic

You can't call atomic_notifier_chain_unregister() while in atomic context.

Fix, call un/register_atmdevice_notifier in module __init and __exit.

Bug report:
http://comments.gmane.org/gmane.linux.network/172603

Reported-by: Mikko Vinni <mmvinni@yahoo.com>
Tested-by: Mikko Vinni <mmvinni@yahoo.com>
Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/br2684.c