[NET]: proto_unregister: fix sleeping while atomic
authorPatrick McHardy <kaber@trash.net>
Wed, 7 Sep 2005 02:47:50 +0000 (19:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2005 02:47:50 +0000 (19:47 -0700)
commit0a3f4358ac6283fe3a565183eaf9716de28b6fd0
treec325ab565db7956b966f391714c9155d0aacc83f
parent48bc41a49c4f3aa760dff84e7f71437f5ed520fe
[NET]: proto_unregister: fix sleeping while atomic

proto_unregister holds a lock while calling kmem_cache_destroy, which
can sleep.

Noticed by Daniele Orlandi <daniele@orlandi.com>.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c