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

Skip to content
Commit e21bf26a authored by Fuad Hossain's avatar Fuad Hossain Committed by Gerrit - the friendly Code Review server
Browse files

drm: Ensure proper synchronization when adding/removing i2c adapter



Surround the calls to add/remove the i2c adapter
with a mutex to ensure proper synchronization.

This fixes a race condition in which consecutive
calls to remove an i2c adapter may cause a double
delete in the i2c driver, leading to an invalid
memory access and subsequent crash.

CRs-Fixed: 2511678
Change-Id: I562b029020325b07c977c73f30c4e6af533c7a77
Signed-off-by: default avatarFuad Hossain <fhossain@codeaurora.org>
parent 54ada83a
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