staging: wilc1000: fix error path cleanup in wilc_wlan_initialize()
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 26 Jun 2019 12:40:48 +0000 (12:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 07:01:40 +0000 (09:01 +0200)
commit6419f818ababebc1116fb2d0e220bd4fe835d0e3
tree96ad15de7ad763344daca9ab0380f0b8adfb9f03
parent424a61122c93f2493c318479646e8db86b3dca6a
staging: wilc1000: fix error path cleanup in wilc_wlan_initialize()

For the error path in wilc_wlan_initialize(), the resources are not
cleanup in the correct order. Reverted the previous changes and use the
correct order to free during error condition.

Fixes: b46d68825c2d ("staging: wilc1000: remove COMPLEMENT_BOOT")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c