tg3: Fix 4k skb error recovery path
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 4 Nov 2011 09:15:00 +0000 (09:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2011 21:31:47 +0000 (17:31 -0400)
commitba1142e4fb291c7bf124d93596351dca8d226a0f
treedc20e27d52a515cfad594d2d137e61a3983d7de5
parentb9e454826f22e17d1945bd282834c87aef8d0f95
tg3: Fix 4k skb error recovery path

On the error recovery resource unwind path, it is possible for the
driver to attempt to unmap a fragment that hadn't been mapped.  This
patch fixes the problem by correcting the "last" parameter supplied.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c