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

Skip to content
Commit 2c52eb4b authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno Committed by Ujwal Patel
Browse files

msm: mdss: refactor pipe retrieval and ref count logic



Allow only retrieval of pipes that are on particular framebuffer device
used list. This ensures that pipe is not modified from a different fb
device node and cause potential issues.

Also, modify the ref count logic to use kref and ensure pipe is freed
only while holding mutex in case there could be race condition that
pipe is allocated while being freed.

Change-Id: I626323b5df981a7ed1e03196126cd4376b5ba6a6
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent ac7c2d75
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