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

Commit efbd50d2 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Marc Kleine-Budde
Browse files

can: esd_usb2: fix memory leak on disconnect



It seems struct esd_usb2 dev is not deallocated on disconnect. The patch adds
the missing deallocation.

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

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: default avatarMatthias Fuchs <matthias.fuchs@esd.eu>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 98e69016
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1143,6 +1143,7 @@ static void esd_usb2_disconnect(struct usb_interface *intf)
			}
		}
		unlink_all_urbs(dev);
		kfree(dev);
	}
}