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

Skip to content
Commit 51668e46 authored by Steve Cohen's avatar Steve Cohen
Browse files

drm/msm/dsi-staging: fix bad pointer dereference in dsi_ctrl_get



If there is an attempt to obtain a 2nd reference count for a particular
dsi controller, the device is reported busy and the pointer value is
invalidated.  This is a problem since the structure that this pointer
refers to is holding a mutex lock at this point and when attempting
to unlock it the invalidated pointer value gets dereferenced.  This
should only occur if there is an invalid device tree configuration with
more than one active displays configured.

Change-Id: If4b55f8f927bb26990303bec1b830739de5e04ae
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 3fafba6f
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