diff options
author | Abhinav Kumar <[email protected]> | 2024-01-17 11:41:09 -0800 |
---|---|---|
committer | Abhinav Kumar <[email protected]> | 2024-01-24 15:16:35 -0800 |
commit | 7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52 (patch) | |
tree | 6290facd591dfa53edf2b1afd42c8502b2bb6d57 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | fcccdafd91f8bdde568b86ff70848cf83f029add (diff) |
drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup
The commit 8b45a26f2ba9 ("drm/msm/dpu: reserve cdm blocks for writeback
in case of YUV output") introduced a smatch warning about another
conditional block in dpu_encoder_helper_phys_cleanup() which had assumed
hw_pp will always be valid which may not necessarily be true.
Lets fix the other conditional block by making sure hw_pp is valid
before dereferencing it.
Reported-by: Dan Carpenter <[email protected]>
Fixes: ae4d721ce100 ("drm/msm/dpu: add an API to reset the encoder related hw blocks")
Reviewed-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/574878/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions