From: Ben Menchaca Date: Wed, 24 Mar 2010 05:05:02 +0000 (+0000) Subject: gianfar: fix undo of reserve() X-Git-Tag: v2.6.34-rc3~9^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d36d5689b1806a3365c909192e9f03a43a632b;p=pandora-kernel.git 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: Ben Menchaca Signed-off-by: David S. Miller --- Reading git-diff-tree failed