diff options
| author | Colin Ian King <[email protected]> | 2021-07-09 12:30:25 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-08-04 12:43:52 +0000 |
| commit | 09ea9719a423fc675d40dd05407165e161ea0c48 (patch) | |
| tree | eeadb2bb5569d74ffe0ce28ee04ebcff5bf9a17a /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | media: venus: hfi: fix return value check in sys_get_prop_image_version() (diff) | |
| download | kernel-09ea9719a423fc675d40dd05407165e161ea0c48.tar.gz kernel-09ea9719a423fc675d40dd05407165e161ea0c48.zip | |
media: venus: venc: Fix potential null pointer dereference on pointer fmt
Currently the call to find_format can potentially return a NULL to
fmt and the nullpointer is later dereferenced on the assignment of
pixmp->num_planes = fmt->num_planes. Fix this by adding a NULL pointer
check and returning NULL for the failure case.
Addresses-Coverity: ("Dereference null return")
Fixes: aaaa93eda64b ("[media] media: venus: venc: add video encoder files")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
0 files changed, 0 insertions, 0 deletions
