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

Commit f4a728d0 authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

drivers/usb/misc/usbtest.c: add kfrees



Free the two previously allocated buffers before exiting the function in an
error case.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f941f692
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2277,6 +2277,8 @@ usbtest_probe(struct usb_interface *intf, const struct usb_device_id *id)
			if (status < 0) {
				WARNING(dev, "couldn't get endpoints, %d\n",
						status);
				kfree(dev->buf);
				kfree(dev);
				return status;
			}
			/* may find bulk or ISO pipes */