]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9580da3fca1e19cd676547bb5433d8374f933e68
tree3caaf2ac5a64fc9916a8da3719c4423765dde14d
parent089737f443a546d5de46ee1cc082b0c5f654b3da
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