aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
diff options
context:
space:
mode:
authorNoralf Trønnes <[email protected]>2018-07-12 15:04:14 +0000
committerNoralf Trønnes <[email protected]>2018-07-13 10:07:46 +0000
commitcf19fa2cfa4e9b5458b6f3503c5317dd1a2bfbae (patch)
tree79b059e80c213063478e971a17ddf622009e1dd3 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
parentdrm/sti: Replace drm_dev_unref with drm_dev_put (diff)
downloadkernel-cf19fa2cfa4e9b5458b6f3503c5317dd1a2bfbae.tar.gz
kernel-cf19fa2cfa4e9b5458b6f3503c5317dd1a2bfbae.zip
drm/client: Fix double free in error path
This fixes a static checker warning: drivers/gpu/drm/drm_client.c:289 drm_client_buffer_create() error: double free of 'buffer' Extend drm_client_buffer_delete() to handle the case when there's no dumb buffer attached and drop the extra kfree. Fixes: c76f0f7cb546 ("drm: Begin an API for in-kernel clients") Reported-by: Dan Carpenter <[email protected]> Cc: Daniel Vetter <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions