diff options
| author | Amitkumar Karwar <akarwar@marvell.com> | 2012-02-01 20:41:44 -0800 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:55:50 -0500 |
| commit | 477778bb0e7c671860528946b412294684337c5e (patch) | |
| tree | 896e8ba8725599e6ecb9c4b1618a89139017ae38 /include/linux | |
| parent | 197a4e4e1f7ef11458f09b4dd74397baf6758133 (diff) | |
mwifiex: fix NULL pointer dereference in set_channel()
In set_channel() callback handler, "priv" pointer is derived from
net_device. Sometimes net_device pointer coming from the stack
is NULL which causes kernel crash.
This patch fixes the problem by deriving "priv" from wiphy
when net_device pointer is NULL.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
