]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00 : trim the skb after having the l2pad removed.
authorAlban Browaeys <prahal@yahoo.com>
Fri, 4 Dec 2009 22:47:00 +0000 (23:47 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 23:56:29 +0000 (18:56 -0500)
commit7d2561b2f2bd4f3e325798f2cf0cbe7c39c329c9
tree3d11eac574e232219f5ca512d1572130c242834c
parent832e06b34c60b155f73d999d4dc9f762564884de
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>
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2x00dev.c