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

Skip to content
Commit 0a56fd9f authored by Hemant Kumar's avatar Hemant Kumar
Browse files

net: rmnet_usb_ctrl: Block poll() after device disconnect



Driver is setting POLLERR mask event upon device disconnect which
makes poll() non blocking call. This causes userspace client to
continuously poll for read after device disconnect. Hence clear
mask event next time when usespace client calls poll(). This allows
userspace client to get blocked until device connects back. Also
empty rx_list at the time of disconnect to avoid passing stale
data to userspace after device connects back.

CRs-Fixed: 641385
Change-Id: Iac6449c814e4a6016d3a4d5b4f7a27d9fd1dae6c
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 5656dbf3
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