staging: wilc1000: fix to use correct index to free scanned info in clear_shadow_scan()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 4 Sep 2018 06:39:19 +0000 (12:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:17:38 +0000 (17:17 +0200)
commit19707ca2953b8190de4475f7c7c32949badee191
treee3b2da1083e73242ef8e6f32396c6f81ab2126f4
parent1803da60f7c208cb7138f289dfc6d05fe49e1bd3
staging: wilc1000: fix to use correct index to free scanned info in clear_shadow_scan()

Fixes to use correct index to free the allocated memory for ies
information. The check was done using 'last_scanned_cnt' index and its
not correct, so use the correct index ('i') to check for before freeing
the allocated memory.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c