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

Skip to content
Commit 79f771f9 authored by Udipto Goswami's avatar Udipto Goswami
Browse files

usb: pd: Prevent race between handle_vdm_tx & reset_vdm_state



When type-C disconnects and hard reset happens in parallel,
a race condition is seen between handle_vdm_tx and
reset_vdm_state. This race condition leads to slab poisoning.
To fix this, execute both the functions serially using
mutex locks.

Change-Id: Ie56331e2462e47651a2f170eae0fb8f1655c32f4
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent c75e07f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment