]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9101caa5f7caeb0674596adfe0d6889f1ac62150
tree96ad15de7ad763344daca9ab0380f0b8adfb9f03
parenta713db9d6100f1ce6785cede8f20178b102e9d3b
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: cabe5d52c904 ("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