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

Skip to content
Commit fff8ad6a authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: gadget: mtp: Fix possible NULL pointer dereference



If the vfs_write fails for the possible last request,
then there is no request queued to the controller and
read_req is NULL. And usb_ep_dequeue will result in a
NULL pointer dereference. Fix this by validating the
read_req before usb_ep_dequeue.

Change-Id: I9ddb3783ec1a56a59da72ff73283b8c3cafac056
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 4e009b46
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