From: Will Deacon Date: Thu, 12 Apr 2012 05:54:09 +0000 (+0000) Subject: net: smsc911x: fix skb handling in receive path X-Git-Tag: v3.4-rc5~44^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c5e979bd037888dd7d722da22da4b43659af485;p=pandora-kernel.git net: smsc911x: fix skb handling in receive path The SMSC911x driver resets the ->head, ->data and ->tail pointers in the skb on the reset path in order to avoid buffer overflow due to packet padding performed by the hardware. This patch fixes the receive path so that the skb pointers are fixed up after the data has been read from the device, The error path is also fixed to use number of words consistently and prevent erroneous FIFO fastforwarding when skipping over bad data. Signed-off-by: Will Deacon Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed