diff options
author | Alban Browaeys <prahal@yahoo.com> | 2009-12-05 01:47:00 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-22 02:56:29 +0300 |
commit | 1398d4580eff2656f3a808ec24744ce5a842db35 (patch) | |
tree | 3d11eac574e232219f5ca512d1572130c242834c /drivers/net/wireless/rt2x00/rt2800pci.c | |
parent | e81e0aef32bfa7f593b14479b9c7eaa7196798ac (diff) | |
download | linux-1398d4580eff2656f3a808ec24744ce5a842db35.tar.xz |
rt2x00 : trim the skb after having the l2pad removed.
Otherwise we end up truncating the skb before removing the l2pad
thus we might have the truncated part become garbage while getting
it back in remove_l2pad.
For the same issue: remove the skb_trim from the rt2800 fill_rxdone
(it is done after l2pad removal in rt2x00lib_rxdone).
Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index dfc886fcb44d..6fcb2bb840b2 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c @@ -927,7 +927,6 @@ static void rt2800pci_fill_rxdone(struct queue_entry *entry, * Remove TXWI descriptor from start of buffer. */ skb_pull(entry->skb, RXWI_DESC_SIZE); - skb_trim(entry->skb, rxdesc->size); } /* |