Skip to content
Commit a6d36d56 authored by Ben Menchaca's avatar Ben Menchaca Committed by David S. Miller
Browse files

gianfar: fix undo of reserve()



Fix undo of reserve() before RX recycle

gfar_new_skb reserve()s space in the SKB to align it.  If an error occurs,
and the skb needs to be returned to the RX recycle queue, the current code
attempts to reset head, but did not reset tail.  This patch remembers the
alignment amount, and reverses the reserve() when needed.

Signed-off-by: default avatarBen Menchaca <ben@bigfootnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent af06393b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment