From: Sergio Paracuellos Date: Tue, 3 Apr 2018 15:12:56 +0000 (+0200) Subject: staging: ks7010: fix label to jump to in error case X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f4f540565896d6a1392997b17148b701017832ac;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 6ba8109fa120..64a58e8e2b90 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;