usb: gadget: u_ether: Fix NULL pointer dereference crash

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

CRs-Fixed: 452642
Change-Id: Ia28399b896ec1e069abeee8fe477826de6bb5942
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
1 file changed