]> git.baikalelectronics.ru Git - kernel.git/commit
mwl8k: Fixing sta dereference when ieee80211_tx_info->control.sta is NULL
authorYogesh Ashok Powar <yogeshp@marvell.com>
Wed, 13 Jul 2011 12:12:06 +0000 (17:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jul 2011 17:38:30 +0000 (13:38 -0400)
commit8da5d09060f0d3129ad491cc4b345abbc3f61db3
treeb0dfdbf0e252ddef7ab480233ce8842c0e7867a1
parentca7f56b987d634b976c6706d1e2fe054b57e8f20
mwl8k: Fixing sta dereference when ieee80211_tx_info->control.sta is NULL

Following oops was seen on SMP machine

>BUG: unable to handle kernel NULL pointer dereference at 00000012
>IP: [<f8c56691>] mwl8k_tx+0x20e/0x561 [mwl8k]
>*pde = 00000000
>Oops: 0000 [#1] SMP
>Modules linked in: mwl8k mac80211 cfg80211 [last unloaded: cfg80211]

As ieee80211_tx_info->control.sta may be NULL during ->tx call, avoiding sta
dereference in such scenario with the following patch.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c