wifi: orinoco: Fix an error handling path in spectrum_cs_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 07:29:46 +0000 (09:29 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:15:09 +0000 (19:15 +0300)
commit925244325159824385209e3e0e3f91fa6bf0646c
treeedcf40a377ec9552042a46626b6d2fde5121c193
parent47e612268ea02f7d2bcbaa47528698b5be61a8cf
wifi: orinoco: Fix an error handling path in spectrum_cs_probe()

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

While at it, remove a useless and erroneous comment. The probe is
spectrum_cs_probe(), not spectrum_cs_attach().

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/c0bc0c21c58ca477fc5521607615bafbf2aef8eb.1684567733.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/intersil/orinoco/spectrum_cs.c