AF_PACKET: Check device down state before hard header callbacks.
commit396cdac3a693b34961d033a94672226b7c6c09d2
authorDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2007 08:25:18 +0000 (14 09:25 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:25:18 +0000 (14 09:25 +0100)
tree53fcdc8046c152bdff388bfc1af72c423008d9f9
parent4ff61ecf6949e0ab2c062b40e0111f39e3956a0d
AF_PACKET: Check device down state before hard header callbacks.

If the device is down, invoking the device hard header callbacks
is not legal, so check it early.

Based upon a shaper OOPS report from Frederik Deweerdt.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/packet/af_packet.c