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

Commit 4390ea89 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: f_rmnet: Make sure to have ep->ops updated before connect



msm_ep_config() overrides ep->ops for USB endless queue functionality.
There is possible race when ep->ops are being used from
gbam2bam_connect_work() and as same time it is being updated from
frmnet_set_alt(). Hence make sure to update ep->ops before calling
gbam_connect() API to queue endless transfer with USB endpoint.

Also fix error handling with frmnet_set_alt() API.

Change-Id: I6f51b0f0ae9f79d1a19b6173e7f65be2dca71404
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 3e5d75b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment