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

Skip to content
Commit acae8fd6 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: misc: diag_bridge: Fix races between delete and read/write



It might be possible that some read/write requests are pending
after diag_bridge_close has been called. This might lead to
use-after-free scenarios of the 'dev' structure if it is freed
by delete() while read/write is in progress. Fix this by using
global mutex to protect 'dev' in read/write and delete functions.

Change-Id: I0f9fd8bca82fc43c9ea7d340093aed5f7c263040
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent c5bc7f27
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