]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: don't write past the end when writing short descriptors on rt61
authorAdam Baker <linux@baker-net.org.uk>
Sun, 3 Feb 2008 14:46:24 +0000 (15:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:19:27 +0000 (15:19 -0500)
commit7be194e741fbcebaaac70140ad7c07bb0607f1b3
treeba2276597e2a533af54eff7db1042be2f8f7cbe2
parent07e8b30db5d3ac5cc9c01cf67308d4f90ab8d2fe
rt2x00: don't write past the end when writing short descriptors on rt61

The space allocated in the skb for a descriptor is only 24 bytes when
setting up beacons in rt61 so make sure we don't write to the descriptor
words beyond that and corrupt the beacon packet.

Signed-off-by: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt61pci.c