Added error handling for dma_map_sgtable.
If an error occurs, the sgt table is freed.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: 182354a526a0 ("drm: etnaviv: fix common struct sg_table related issues")
Signed-off-by: Danila
/amdgpu: add core driver (v4))
Signed-off-by: Danila Chernetsov
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
index 43f29ee0e3b0..e445a2c9f569
when an error occurs.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: d38ceaf99ed0 (drm/amdgpu: add core driver (v4))
Signed-off-by: Danila Chernetsov
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 13 +++--
1 file changed, 11
The 'pipe' can't be NULL because it points to an element of array.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixed: 7cf2c840c6b5 (drm/amd/display: Commit validation set from state)
Signed-off-by: Danila Chernetsov
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
1