Skip to content

Commit

Permalink
hwc: Fix MDP comp array index access
Browse files Browse the repository at this point in the history
Fix MDP comp array index access in case of High Res pipe allocation.
This is already correct in case of Low Res allocation routine.

Bug: 24163261

Acked-by: Saurabh Shah <[email protected]>

Change-Id: I7eaa0711ef8998ea03edba18b74db80459daf4c7
  • Loading branch information
Arun Kumar K.R authored and pattjin committed Oct 16, 2015
1 parent 4566052 commit 95c2601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msm8960/libhwcomposer/hwc_mdpcomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ bool MDPCompHighRes::allocLayerPipes(hwc_context_t *ctx,
if(isYuvBuffer(hnd))
continue;

PipeLayerPair& info = mCurrentFrame.mdpToLayer[index];
int mdpIndex = mCurrentFrame.layerToMDP[index];
PipeLayerPair& info = mCurrentFrame.mdpToLayer[mdpIndex];
info.pipeInfo = new MdpPipeInfoHighRes;
info.rot = NULL;
MdpPipeInfoHighRes& pipe_info = *(MdpPipeInfoHighRes*)info.pipeInfo;
Expand Down

0 comments on commit 95c2601

Please sign in to comment.