[PATCH] AF_PACKET: Check device down state before hard header callbacks.
commit2a5332990f1f6f76a03396db7fb894bcd55c4ffe
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 2 Feb 2007 21:01:28 +0000 (2 13:01 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:45 +0000 (5 08:31 -0800)
tree1a44f70bb7675ae4b792e5a0fc70c5007c4a3594
parent6d2d108d66d02bc617e3cab2419fecf0e43afae6
[PATCH] 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: Chris Wright <chrisw@sous-sol.org>
net/packet/af_packet.c