[AF_PACKET]: Check device down state before hard header callbacks.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 26 Jan 2007 03:30:36 +0000 (19:30 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 26 Jan 2007 03:30:36 +0000 (19:30 -0800)
commitd5e76b0a280f71b20bdd20d1c1b4d6812ceb8c3a
tree66241edf73d49e78cc85c0123178fb56b551a282
parent95743deb34de29defbb98ad477700aaf344f93f3
[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>
net/packet/af_packet.c