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:
Chiranjeevi Velempati <cvelempa@codeaurora.org>
Loading
Please sign in to comment