]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit26df19d7fb8f526704dedb80260fc5e014b32d83
tree0f7a5872390c36df4824c324ed7c1cc23714683b
parentfe705dd0904f7ef33708e71605560511c0cb8997
staging: wilc1000: fix error path cleanup in wilc_wlan_initialize()

BugLink: https://bugs.launchpad.net/bugs/1844558
[ Upstream commit 6419f818ababebc1116fb2d0e220bd4fe835d0e3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/staging/wilc1000/linux_wlan.c