commit | 57c5d46191e75312934c00eba65b13a31ca95120 | [log] [tgz] |
---|---|---|
author | Amerigo Wang <amwang@redhat.com> | Fri Aug 10 01:24:40 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Aug 14 14:33:31 2012 -0700 |
tree | 18eb9488b414f0dacdf7be468985a29ceeb1f2e9 | |
parent | 3335f0ca130c201f8680e97f63612053fbc16e22 [diff] |
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>