mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
USB: quatech2: fix memory leak in error path
Fix memory leak in attach error path where the read urb was never freed. Cc: Bill Pemberton <[email protected]> Cc: <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
feffa7ca60
commit
b8a0055050
1 changed files with 1 additions and 0 deletions
|
|
@ -823,6 +823,7 @@ static int qt2_setup_urbs(struct usb_serial *serial)
|
|||
if (status != 0) {
|
||||
dev_err(&serial->dev->dev,
|
||||
"%s - submit read urb failed %i\n", __func__, status);
|
||||
usb_free_urb(serial_priv->read_urb);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue