: Don't do netpoll on per cpu backlog napi struct
Subsystems (2)
The per cpu backlog napi struct can't do netpoll and has the dev member set to NULL. Fixes an oops on boot when netpoll is enabled.
Signed-off-by Thomas Graf <[email protected]>
include/linux/netpoll.h +1 -1
@@ -75,7 +75,7 @@ static inline void *netpoll_poll_lock(ststruct net_device *dev = napi->dev;rcu_read_lock ();/* deal with race on ->npinfo */ -if (dev->npinfo) { +if (dev && dev->npinfo) {spin_lock (&napi->poll_lock); napi->poll_owner =smp_processor_id ();return napi;
From: Thomas Graf <[email protected]>
Date: Wed, 22 Aug 2007 01:08:51 +0200
Quoted 5 lines
The per cpu backlog napi struct can't do netpoll and has the dev member set to NULL. Fixes an oops on boot when netpoll is enabled.
Signed-off-by Thomas Graf <[email protected]>
Applied, thanks a lot Thomas.