From: Yogesh Ashok Powar Date: Wed, 13 Jul 2011 12:12:06 +0000 (+0530) Subject: mwl8k: Fixing sta dereference when ieee80211_tx_info->control.sta is NULL X-Git-Tag: v3.1-rc1~255^2~14^2^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c929df0895e6f52f4a0f17683d709f5fef95d8;p=pandora-kernel.git 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: [] 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed