netpoll: don't dereference NULL dev from np
authorPavel Emelyanov <xemul@openvz.org>
Mon, 11 May 2009 00:36:35 +0000 (00:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 03:37:55 +0000 (20:37 -0700)
commit5e392739d6ab72f7c35040aa07f4097904bce6e7
tree3c363f0733de8f6f843280f84c68ee57695f0c39
parent74392592bbf7e93ef383588e21aea0c1450d6f12
netpoll: don't dereference NULL dev from np

It looks like the dev in netpoll_poll can be NULL - at lease it's
checked at the function beginning. Thus the dev->netde_ops dereference
looks dangerous.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c