Re: [PATCH] mmc: cb710: Fix an error handling path in cb710_probe()

From: Michał Mirosław
Date: Tue Mar 11 2025 - 03:15:36 EST


On Sun, Mar 09, 2025 at 09:22:05AM +0100, Christophe JAILLET wrote:
> If an error occurs after a successful ida_alloc() call, it should be undone
> by a corresponding ida_free(), as already done in the remove function.
>
> Add the missing call in the error handling path of cb710_probe().
>
> Fixes: 5f5bac8272be ("mmc: Driver for CB710/720 memory card reader (MMC part)")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> drivers/misc/cb710/core.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)

Acked-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>