staging: wilc1000: handle freeing of key data in wep add key
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 26 Jun 2018 06:07:09 +0000 (11:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:55:51 +0000 (21:55 +0900)
commite6ea187b5b2acff5ed07dacff37306d0f56d6d43
treecfcbaccb39b832bde4d096371bb7a8850da9de28
parentc6a358d56476274c0ed4c4604565959692569762
staging: wilc1000: handle freeing of key data in wep add key

Modified the code to free the allocated memory, used to store the key in
wilc_add_wep_key_bss_sta() and wilc_add_wep_key_bss_ap().
After work completion notification is received, free the
memory allocated to avoid missing of free in work function.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c