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

Commit 0b6102e6 authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: gadget: serial: Prevent use-after-free



This change prevents use-after-free of dwc3_requests
during power on/off with USB connected. Since checking
of port->usb means that by that time gserial_disconnect
must have been called and as a part of disconnect we will
free the request pool.

Change-Id: Iee55d9e580e45daaf84e69d89390a3d91b185a80
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 6214ba0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment