Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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> Patch-mainline: 20180712150414.46908-1-noralf@tronnes.org @ 12/07/18, 03:04 p.m. Link: https://patchwork.freedesktop.org/patch/msgid/20180712150414.46908-1-noralf@tronnes.org Change-Id: I21aed9d7b052b7f804100a70c50532385255acf3 Signed-off-by: Shubham Talekar <stalek@codeaurora.org>
- Loading branch information