]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Fix 4k skb error recovery path
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 4 Nov 2011 09:15:00 +0000 (09:15 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 02:31:32 +0000 (10:31 +0800)
commit277bbef0c63fc6956518f847b602f986184459a7
tree4f61a95347122b64e487d5a2507513493828a22a
parent24e2a59381a4dbc8df45d6f13883c70896592e00
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.

(cherry picked from commit ba1142e4fb291c7bf124d93596351dca8d226a0f)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c