disp: msm: sde: add NULL check for hw_cdm block during WB session
Add null check for hw_cdm block because it can be accessed
in WB session in commit context when input format is YUV.
Timeline of the issue:
--> C1 commit WB check_only + modeset, RM allocated resources
--> C2 commit WB check_only + modeset, RM has failed commit
because curr and nxt rsvps are already allocated.
RM has released nxt rsvps here which should not be done.
--> C3 commit WB check_only + modeset with change in topology from
C1 commit, RM allocated resources. hw_blks->rsvp_nxt is filled
with reservations allocated by C3 commit.
--> C1 commit scheduled and RM committed reservations allocated
by C3 which caused null dereference of hw_cdm block.
Change-Id: I723e139b55d72228b763ee5e3892f7a7513dd093
Signed-off-by:
Jayaprakash <jmadiset@codeaurora.org>
Loading
Please register or sign in to comment