]> git.itanic.dy.fi Git - linux-stable/commit
3c589_cs: Fix an error handling path in tc589_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 09:48:55 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 May 2023 02:17:58 +0000 (19:17 -0700)
commit640bf95b2c7c2981fb471acdafbd3e0458f8390d
treea81457c0cf9f59b879e95f0a886154d9abfa79a1
parent5b17a4971d3b2a073f4078dd65331efbe35baa2d
3c589_cs: Fix an error handling path in tc589_probe()

Should tc589_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>
Link: https://lore.kernel.org/r/d8593ae867b24c79063646e36f9b18b0790107cb.1684575975.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/3com/3c589_cs.c