mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "usb: gsi: Add NULL pointer check"
This commit is contained in:
commit
1389989ffa
1 changed files with 4 additions and 2 deletions
|
|
@ -855,8 +855,10 @@ static int gsi_ep_enable(struct f_gsi *gsi)
|
|||
ret = usb_gsi_ep_op(gsi->d_port.out_ep,
|
||||
&gsi->d_port.out_request, GSI_EP_OP_CONFIG);
|
||||
if (ret) {
|
||||
usb_gsi_ep_op(gsi->d_port.in_ep,
|
||||
&gsi->d_port.in_request, GSI_EP_OP_DISABLE);
|
||||
if (gsi->d_port.in_ep)
|
||||
usb_gsi_ep_op(gsi->d_port.in_ep,
|
||||
&gsi->d_port.in_request,
|
||||
GSI_EP_OP_DISABLE);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue