Commit 70b5cd7e authored by Manu Gautam's avatar Manu Gautam Committed by Gerrit - the friendly Code Review server
Browse files

mhi: dev: uci: Avoid resubmission of same buffer to MHI



mhi_uci_read() drops and reacquires spin_lock when performing
copy_to_user(). However, there is a possibility of two user
threads getting hold of same uci_buf when the lock is released.
This can result in submission of same uci_buf to MHI which can
later result in list corruption when mhi_dl_xfer_cb() tries to
put same uci_buf to pending list twice.

Change-Id: Iabcd6f11acc1a0852811f9c78d7d7f073aa5c724
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 054b8056
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment