staging: ks7010: fix label to jump to in error case
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 3 Apr 2018 15:12:56 +0000 (17:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:22:07 +0000 (14:22 +0200)
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 <sergio.paracuellos@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index 6ba8109..64a58e8 100644 (file)
@@ -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;