wifi: wl3501_cs: Fix an error handling path in wl3501_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 08:05:08 +0000 (10:05 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:16:49 +0000 (19:16 +0300)
commit391af06a02e7642039ac5f6c4b2c034ab0992b5d
treea2aeca67572e4b5a44c7ce346c3a538ec32c91d8
parent6b92e4351a29af52c285fe235e6e4d1a75de04b2
wifi: wl3501_cs: Fix an error handling path in wl3501_probe()

Should wl3501_config() fail, some resources need to be released as already
done in the remove function.

Fixes: 15b99ac17295 ("[PATCH] pcmcia: add return value to _config() functions")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/7cc9c9316489b7d69b36aeb0edd3123538500b41.1684569865.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/legacy/wl3501_cs.c