netpoll: take rcu_read_lock_bh() in netpoll_rx()
authorAmerigo Wang <amwang@redhat.com>
Fri, 10 Aug 2012 01:24:40 +0000 (01:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2012 21:33:31 +0000 (14:33 -0700)
commit57c5d46191e75312934c00eba65b13a31ca95120
tree18eb9488b414f0dacdf7be468985a29ceeb1f2e9
parent3335f0ca130c201f8680e97f63612053fbc16e22
netpoll: take rcu_read_lock_bh() in netpoll_rx()

In __netpoll_rx(), it dereferences ->npinfo without rcu_dereference_bh(),
this patch fixes it by using the 'npinfo' passed from netpoll_rx()
where it is already dereferenced with rcu_dereference_bh().

Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netpoll.h
net/core/netpoll.c