Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8a00550 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

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 <wfp5p@virginia.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent feffa7ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}