ps3_gelic: Fix start_xmit kick error path
authorAndre Heider <a.heider@gmail.com>
Tue, 12 Jul 2011 10:13:25 +0000 (10:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 17:12:15 +0000 (10:12 -0700)
commitbb4f85ce1731d78648870333f0ce77123fa162e6
tree9a7606be3fcabc487474dbec4511016cc9ddc4b1
parente3001c98df51d81a72534837d8069bfb53f3e1ea
ps3_gelic: Fix start_xmit kick error path

Revert to a proper state when gelic_card_kick_txdma() fails:
- Don't trigger BUG_ON when releasing the unsent tx descriptor
- Reset the tx chain head since the tail was not modified and
  hence not in sync
- Unlink the released descriptor bus address from its predecessor

Signed-off-by: Andre Heider <a.heider@gmail.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ps3_gelic_net.c