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

Skip to content
Commit 10fcbc96 authored by Chris Lew's avatar Chris Lew
Browse files

net: qrtr: mhi: Remove timeout and interruptible



Returning early from a send releases the socket reference that sendmsg
takes. This allows that socket to be released and its wq to be freed.
If the MHI ul callback is called after the socket is released, then
there is a chance skb_free for a skb that is attached to that sock will
try to use the wq that is already freed.

Remove the timeout and interruptible modifiers for wait_for_completion
and wait for MHI to call the UL callback before returning to sendmsg.

Change-Id: Icdf41ccf8c1e951855a780dc79a867c5e8cbb387
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent d0658a03
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