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)
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>

No differences found