commit | f0f9deae9e7c421fa0c1c627beb8e174325e1ba7 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Fri Sep 17 16:55:03 2010 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 17 16:55:03 2010 -0700 |
tree | 7883b0c64cc16f1c3f3f4360a4dbcc214e6a6a22 | |
parent | 4bdab43323b459900578b200a4b8cf9713ac8fab [diff] |
netpoll: Disable IRQ around RCU dereference in netpoll_rx We cannot use rcu_dereference_bh safely in netpoll_rx as we may be called with IRQs disabled. We could however simply disable IRQs as that too causes BH to be disabled and is safe in either case. Thanks to John Linville for discovering this bug and providing a patch. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>