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

Commit c36aeba8 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Samuel Ortiz
Browse files

NFC: port100: Fix device leak



port100_probe() calls usb_get_dev(), but there is no usb_put_dev()
in port100_disconnect(). The patch adds one.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 4f319e32
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1509,6 +1509,7 @@ static void port100_disconnect(struct usb_interface *interface)

	usb_free_urb(dev->in_urb);
	usb_free_urb(dev->out_urb);
	usb_put_dev(dev->udev);

	kfree(dev->cmd);