aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2022-05-06 13:52:49 +0000
committerThierry Reding <[email protected]>2022-05-06 13:52:49 +0000
commitcb7e1abc2c73633e1eefa168ab2dad6e838899c9 (patch)
treeb3f216cb3832ee978ab7912ed42ff4b35afa25d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
parentdrm/tegra: vic: Fix unused-function warnings (diff)
downloadkernel-cb7e1abc2c73633e1eefa168ab2dad6e838899c9.tar.gz
kernel-cb7e1abc2c73633e1eefa168ab2dad6e838899c9.zip
drm/tegra: gem: Do not try to dereference ERR_PTR()
When mapping the DMA-BUF attachment fails, map->sgt will be an ERR_PTR- encoded error code and the cleanup code would try to free that memory, which obviously would fail. Zero out that pointer after extracting the error code when this happens so that kfree() can do the right thing. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h')
0 files changed, 0 insertions, 0 deletions