diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-11-28 23:29:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-03 01:15:02 +0100 |
commit | 3ff67445750a84de67faaf52c6e1895cb09f2c56 (patch) | |
tree | 2a50f3fd3401948f0bcfe8ba1fa468bd2c828074 /drivers/clocksource/timer-atmel-pit.c | |
parent | usb: gadget: udc: missing curly braces (diff) | |
download | linux-3ff67445750a84de67faaf52c6e1895cb09f2c56.tar.xz linux-3ff67445750a84de67faaf52c6e1895cb09f2c56.zip |
usbip: fix error handling in stub_probe()
If usb_hub_claim_port() fails, no resources are deallocated and
if stub_add_files() fails, port is not released.
The patch fixes these issues and rearranges error handling code.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clocksource/timer-atmel-pit.c')
0 files changed, 0 insertions, 0 deletions