]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0804321437338c5aa0234148a79962edf30a9e17
treee772805828ad8c862c10b1845878baffbb11248e
parent0b01753ce6ee01c1683347376fef5de6392299fa
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