Commit 9179d54a authored by Chiranjeevi Velempati's avatar Chiranjeevi Velempati
Browse files

usb: gadget: u_bam: Fix NULL pointer dereference crash



port->port_usb could be NULL as part of assigning to in endpoint, so,
check port->port_usb is valid before assigning the endpoint.

CRs-Fixed: 451723
Change-Id: I3b5f7acaaeaae399f9a2482eb3f75b51fb36080b
Signed-off-by: default avatarChiranjeevi Velempati <cvelempa@codeaurora.org>
parent a1ab12ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment