[ldv-project] [PATCH] mmc: vub300: add missing usb_put_dev
Chris Ball
cjb at laptop.org
Tue Nov 27 16:21:31 MSK 2012
Hi,
On Tue, Nov 27 2012, Marina Makienko wrote:
> 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 at ispras.ru>
> ---
> 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 d5655a6..cb9f361 100644
> --- a/drivers/mmc/host/vub300.c
> +++ b/drivers/mmc/host/vub300.c
> @@ -2362,6 +2362,7 @@ error4:
> error1:
> usb_free_urb(command_out_urb);
> error0:
> + usb_put_dev(udev);
> return retval;
> }
Thanks, pushed to mmc-next for 3.8.
- Chris.
--
Chris Ball <cjb at laptop.org> <http://printf.net/>
One Laptop Per Child
More information about the ldv-project
mailing list