commit | 477778bb0e7c671860528946b412294684337c5e | [log] [tgz] |
---|---|---|
author | Amitkumar Karwar <akarwar@marvell.com> | Wed Feb 01 20:41:44 2012 -0800 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Feb 06 14:55:50 2012 -0500 |
tree | 896e8ba8725599e6ecb9c4b1618a89139017ae38 | |
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>