LF-1596 dma: pxp: add checking for out against NULL
Coverity Issue ID: 414719 Signed-off-by: Robby Cai <robby.cai@nxp.com> Reviewed-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 02460d551d7c94e911240da6b62082b91653d923)5.4-rM2-2.2.x-imx-squashed
parent
fe7318abc1
commit
67841b2327
|
@ -1543,7 +1543,7 @@ static uint32_t pxp_store_ctrl_config(struct pxp_pixmap *out, uint8_t mode,
|
|||
ctrl.store_memory_en = 1;
|
||||
}
|
||||
|
||||
if (out->rotate || out->flip)
|
||||
if (out && (out->rotate || out->flip))
|
||||
ctrl.block_en = 1;
|
||||
|
||||
ctrl.ch_en = 1;
|
||||
|
|
Loading…
Reference in New Issue