From f4f540565896d6a1392997b17148b701017832ac Mon Sep 17 00:00:00 2001 From: Sergio Paracuellos Date: Tue, 3 Apr 2018 17:12:56 +0200 Subject: [PATCH] staging: ks7010: fix label to jump to in error case This commit fixs the label to jump to when in case an error occurs disabling interrupts. At this point of the code sdio_enable_func() function has been successfully called. Signed-off-by: Sergio Paracuellos Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ks7010/ks7010_sdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 6ba8109..64a58e8 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -858,7 +858,8 @@ static int ks7010_sdio_probe(struct sdio_func *func, /* interrupt disable */ sdio_writeb(func, 0, INT_ENABLE, &ret); if (ret) - goto err_free_card; + goto err_disable_func; + sdio_writeb(func, 0xff, INT_PENDING, &ret); if (ret) goto err_disable_func; -- 2.7.4