]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix panic on fragmentation with power saving
authorJouni Malinen <j@w1.fi>
Fri, 13 Mar 2009 11:59:39 +0000 (13:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:01:59 +0000 (18:01 -0400)
commite0f8b6e83352524192fbdee4f80d37f8ad090a72
tree01e03e8e32022dc01400f51befb8c843f4ea1bad
parent70f12a62a1d34501e0aa2649b1aa586b0440faec
mac80211: Fix panic on fragmentation with power saving

It was possible to hit a kernel panic on NULL pointer dereference in
dev_queue_xmit() when sending power save buffered frames to a STA that
woke up from sleep. This happened when the buffered frame was requeued
for transmission in ap_sta_ps_end(). In order to avoid the panic, copy
the skb->dev and skb->iif values from the first fragment to all other
fragments.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c