diff options
author | Dan Carpenter | 2023-11-02 10:51:06 +0300 |
---|---|---|
committer | Ulf Hansson | 2023-11-03 12:04:34 +0100 |
commit | b44f9da81783fda72632ef9b0d05ea3f3ca447a5 (patch) | |
tree | 6ca0f741efdf42691b2b22c4c88618e930a7c6f1 /drivers | |
parent | ed9009ad300c0f15a3ecfe9613547b1962bde02c (diff) |
mmc: vub300: fix an error code
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/vub300.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c index de3f443f5fdc..fd67c0682b38 100644 --- a/drivers/mmc/host/vub300.c +++ b/drivers/mmc/host/vub300.c @@ -2309,6 +2309,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); |