Commit 063f96c2230052356d8653381912e618a8ae951c

Authored by Marina Makienko
Committed by Chris Ball
1 parent 06960a1b5d

mmc: vub300: add missing usb_put_dev

Add missing usb_put_dev on failure path in vub300_probe().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
Signed-off-by: Chris Ball <cjb@laptop.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/mmc/host/vub300.c
... ... @@ -2362,6 +2362,7 @@
2362 2362 error1:
2363 2363 usb_free_urb(command_out_urb);
2364 2364 error0:
  2365 + usb_put_dev(udev);
2365 2366 return retval;
2366 2367 }
2367 2368