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:
Chris Lew <clew@codeaurora.org>
Loading
Please register or sign in to comment