summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_dp_cec.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2018-07-12 17:04:14 +0200
committerNoralf Trønnes <noralf@tronnes.org>2018-07-13 12:07:46 +0200
commitcf19fa2cfa4e9b5458b6f3503c5317dd1a2bfbae (patch)
tree79b059e80c213063478e971a17ddf622009e1dd3 /drivers/gpu/drm/drm_dp_cec.c
parenta08eac479b4e6de3700d8d1c7c664d4ffc0535c7 (diff)
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 <dan.carpenter@oracle.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180712150414.46908-1-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/drm_dp_cec.c')
0 files changed, 0 insertions, 0 deletions