summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-11-02 10:51:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 16:46:34 +0000
commit562031121a3426e2a2d8053f5a2e7706f8fab483 (patch)
tree00a3a8f93f443992db9b52ee0371742da229fd0c /drivers/mmc
parent09d3a27edd9db85da54f5629427a984b5c7bb49d (diff)
downloadlinux-stable-562031121a3426e2a2d8053f5a2e7706f8fab483.tar.gz
linux-stable-562031121a3426e2a2d8053f5a2e7706f8fab483.tar.bz2
linux-stable-562031121a3426e2a2d8053f5a2e7706f8fab483.zip
mmc: vub300: fix an error code
commit b44f9da81783fda72632ef9b0d05ea3f3ca447a5 upstream. This error path should return -EINVAL instead of success. Fixes: 88095e7b473a ("mmc: Add new VUB300 USB-to-SD/SDIO/MMC driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/0769d30c-ad80-421b-bf5d-7d6f5d85604e@moroto.mountain Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/vub300.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
index 5a985a0d9d85..1d08318bd707 100644
--- a/drivers/mmc/host/vub300.c
+++ b/drivers/mmc/host/vub300.c
@@ -2321,6 +2321,7 @@ static int vub300_probe(struct usb_interface *interface,
vub300->read_only =
(0x0010 & vub300->system_port_status.port_flags) ? 1 : 0;
} else {
+ retval = -EINVAL;
goto error5;
}
usb_set_intfdata(interface, vub300);