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

Commit 2f42b63f authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Increase fbmem ref count before use



(cherry-pick from 'commit a1b61bc4 ("msm: mdss: Increase
 fbmem buf ref count before use")') and made similar
changes for MDP3.

The reference count for fbmem buf is not incremented
before use, which means it can get freed unintentionally
when the ref countis decreased to "0". In this case,
there is a possibility of use after free. Ensure the
fbmem buf refcount is incremented before use.

Change-Id: Iab89ac332dd447b29514a6d5c3f251fcd145de4d
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 830bf7cc
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