diff options
| author | Amitkumar Karwar <[email protected]> | 2012-02-01 20:41:44 -0800 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2012-02-06 14:55:50 -0500 |
| commit | 477778bb0e7c671860528946b412294684337c5e (patch) | |
| tree | 896e8ba8725599e6ecb9c4b1618a89139017ae38 /tools/perf/scripts/python/net_dropmonitor.py | |
| 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 <[email protected]>
Signed-off-by: Bing Zhao <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions