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)
commit055249d20de06c290fe7625be0a7164bef3958f5
tree01e03e8e32022dc01400f51befb8c843f4ea1bad
parent5ec905a8df3fa877566ba98298433fbfb3d688cc
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