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

Skip to content
Commit d8682453 authored by Rajkumar Raghupathy's avatar Rajkumar Raghupathy Committed by Gerrit - the friendly Code Review server
Browse files

USB: u_ether: Check if port_usb is NULL before accessing



Rndis tx requests are queued to the controller, while disconnect
is in progress. There is a chance of getting the completion of
those requests after dev->port_usb is set to NULL. This leads to
NULL pointer dereference in tx_complete().

Hence, check if dev->port_usb is NULL before accessing it
in tx_complete() and free the current request accordingly.

Change-Id: I42a427f7e51ffe4f81768756d835d123778df260
Signed-off-by: default avatarRajkumar Raghupathy <raghup@codeaurora.org>
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 14681b57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment