diff options
author | Dan Carpenter <[email protected]> | 2023-11-02 10:51:06 +0300 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2023-11-03 12:04:34 +0100 |
commit | b44f9da81783fda72632ef9b0d05ea3f3ca447a5 (patch) | |
tree | 6ca0f741efdf42691b2b22c4c88618e930a7c6f1 | |
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 <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
-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); |