prima: Validate adapter in scan done callback

qcacld-2.0 to prima propagation.

In hdd_cfg80211_scan_done_callback, scan_done notification is
sent to the kernel for scan requests completed successfully or
in case of scan abort. The notification indicates kernel to free
the scan request.
After kernel version 3.14 , changes in the kernel cause scan request
to be freed in case of net device unregister or interface down.
If then HDD sends another scan_done notification on the freed scan
request as part of pending scan abort, a crash occurs when the freed
memory is accessed by kernel.

Thus, avoid sending scan_done notification in case of driver unload.

Change-Id: I8f27c720e00f50f056d7b98e2d35d34f218da7b8
CRs-fixed: 1059683
1 file changed
tree: 24cd0bdda60c9ccb515b10b9cbe2f3b01590d469
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile