]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
gianfar: fix headroom expansion code
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 27 Mar 2009 07:38:45 +0000 (00:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2009 07:38:45 +0000 (00:38 -0700)
commit54dc79fe0d895758bdaa1dcf8512d3d21263d105
tree8a6e73c9e3a227f420bd258d538dd525f3955f9c
parent83e0bbcbe2145f160fbaa109b0439dae7f4a38a9
gianfar: fix headroom expansion code

The code that was added to increase headroom was wrong.
It doesn't handle the case where gfar_add_fcb() changes the skb.
Better to do check at start of transmit (outside of lock), where
error handling is better anyway.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c