]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: Make sure BHs are disabled in sock_prot_inuse_add()
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 24 Nov 2008 08:09:29 +0000 (00:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Nov 2008 08:09:29 +0000 (00:09 -0800)
commit920de804bca61f88643bc9171bcd06f1a56c6258
treefb4c90b4b167a4b7518ea888e99bfd18a7d301fb
parent1f87e235e6fb92c2968b52b9191de04f1aff8e77
net: Make sure BHs are disabled in sock_prot_inuse_add()

The rule of calling sock_prot_inuse_add() is that BHs must
be disabled.  Some new calls were added where this was not
true and this tiggers warnings as reported by Ilpo.

Fix this by adding explicit BH disabling around those call sites,
or moving sock_prot_inuse_add() call inside an existing BH disabled
section.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_hashtables.c
net/packet/af_packet.c
net/unix/af_unix.c