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

Skip to content
Commit 68f7474a authored by Mayank Rana's avatar Mayank Rana Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: u_ether: Fix NULL pointer dereference issue



dev->port_usb can be NULL if USB cable is disconnected when
net device is trying to transfer data which is causing NULL
pointer dereference. Hence add changes to eliminate need of
accessing port->port_usb to see multi_xfer_pkt value.

Change-Id: Ia28399b896ec1e069abeee8fe477826de6bb5942
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent d8682453
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