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

Skip to content
Commit 5bed3e93 authored by Udipto Goswami's avatar Udipto Goswami Committed by Manu Gautam
Browse files

usb: gadget: f_mtp: Securing vfs_write and unbind with less mutex



While doing mtp file transfers and performing usb disconnect,
due to usb request being shared between both vfs_write and
unbind, creates a race condition, result in crashing the kernel.

Fix this by introducing mutex in such a ways that it avoids buffer
being freed and also do not degrade the throughput while copy
operation is performed.

Change-Id: Ic235fb92997993bd75ed5e519a5d73e787522810
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent d66d368d
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