diff options
author | Will Deacon <will.deacon@arm.com> | 2012-04-12 05:54:09 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-27 09:51:20 -0700 |
commit | 8b20a647671ec0f48a22bbd44a52b8e914914140 (patch) | |
tree | 49c725965377cf94c68e8236048eefa036d1fed6 /drivers/net/plip.c | |
parent | 68b80be09c226e303e94241880b4a80248ee62ef (diff) |
net: smsc911x: fix skb handling in receive path
[ Upstream commit 3c5e979bd037888dd7d722da22da4b43659af485 ]
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 <will.deacon@arm.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/plip.c')
0 files changed, 0 insertions, 0 deletions