]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: fix to ether1394_tx in ether1394.c
authorCarlos E. Ugarte <Carlos.E.Ugarte.1@gsfc.nasa.gov>
Mon, 4 Jun 2007 15:49:19 +0000 (11:49 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 16 Jun 2007 10:43:20 +0000 (12:43 +0200)
commit787cc647b8f8c5d5a6af983f6ef29d0b0494e3e9
tree9fcd80d892b4ca5f14d5707b5cc483957e3f8529
parenta0bea1ef33df5a319d47c46a25072c831e13ecbf
ieee1394: fix to ether1394_tx in ether1394.c

This patch fixes a problem that occurs when packets cannot be sent across
the ieee1394 bus and we return NETDEV_TX_BUSY in the net driver "hard start
xmit" routine ether1394_tx. When we return NETDEV_TX_BUSY the stack will
call ether1394_tx again with the same skb. So we need to restore the header
to look like it did before we munged it for xmit over ieee1394.

[Stefan Richter: changed whitespace, deleted a local variable]

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/eth1394.c