Skip to content

Commit

Permalink
mmc: vub300: add missing usb_put_dev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marina Makienko authored and Chris Ball committed Dec 6, 2012
1 parent 06960a1 commit 063f96c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/vub300.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,6 +2362,7 @@ static int vub300_probe(struct usb_interface *interface,
error1:
usb_free_urb(command_out_urb);
error0:
usb_put_dev(udev);
return retval;
}

Expand Down

0 comments on commit 063f96c

Please sign in to comment.