mwifiex: ensure user_scan_in not NULL while setting scan channel gap
authorAvinash Patil <patila@marvell.com>
Wed, 17 Sep 2014 17:31:26 +0000 (23:01 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Sep 2014 21:06:50 +0000 (17:06 -0400)
commit8eda10eaa18709e951b5d5fbbf673543365a4455
tree3caaf2ac5a64fc9916a8da3719c4423765dde14d
parentcb35582ab4d742c1be48c4e51712a19fa202e978
mwifiex: ensure user_scan_in not NULL while setting scan channel gap

Check for scan channel gap only when user_scan_in is not NULL.
user_scan_in is NULL for internal scans and if we check scan channel gap
at this place, it may result into crash.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c