wifi: ray_cs: Fix an error handling path in ray_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 08:13:22 +0000 (10:13 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:17:29 +0000 (19:17 +0300)
commit4f8d66a9fb2edcd05c1e563456a55a08910bfb37
tree9861cf41a92e1573686e1136f6684bce0b7c5820
parent391af06a02e7642039ac5f6c4b2c034ab0992b5d
wifi: ray_cs: Fix an error handling path in ray_probe()

Should ray_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
ray_probe(), not ray_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/8c544d18084f8b37dd108e844f7e79e85ff708ff.1684570373.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/legacy/ray_cs.c