Skip to content

Commit b44f9da

Browse files
Dan Carpenterstorulf
authored andcommitted
mmc: vub300: fix an error code
This error path should return -EINVAL instead of success. Fixes: 88095e7 ("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>
1 parent ed9009a commit b44f9da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/vub300.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,6 +2309,7 @@ static int vub300_probe(struct usb_interface *interface,
23092309
vub300->read_only =
23102310
(0x0010 & vub300->system_port_status.port_flags) ? 1 : 0;
23112311
} else {
2312+
retval = -EINVAL;
23122313
goto error5;
23132314
}
23142315
usb_set_intfdata(interface, vub300);

0 commit comments

Comments
 (0)