[PATCH] drm: Export debugfs functionality for GPL code only

2016-02-07 Thread gr...@linuxhacker.ru
From: Oleg Drokin drm_debugfs_create_files and drm_debugfs_remove_files should only be available for GPL-code only as per Greg-KH Signed-off-by: Oleg Drokin --- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b

[PATCH 0/2] Fix a couple of dri drivers memory leaks

2015-04-26 Thread gr...@linuxhacker.ru
From: Oleg Drokin A couple of memory leaks found by smatch. Oleg Drokin (2): drm/qlx: Fix a memory leak on error path drm: fix a memleak on mutex failure path drivers/gpu/drm/drm_modeset_lock.c | 4 +++- drivers/gpu/drm/qxl/qxl_fb.c | 7 +-- 2 files changed, 8 insertions(+), 3 de

[PATCH 1/2] drm/qlx: Fix a memory leak on error path

2015-04-26 Thread gr...@linuxhacker.ru
From: Oleg Drokin shadow allocation could be leaked if framebuffer allocation failed, so need to free it. Also added handling for shadow allocation failure itself instead of causing a crash. Found with smatch. Signed-off-by: Oleg Drokin --- drivers/gpu/drm/qxl/qxl_fb.c | 7 +-- 1 file cha

[PATCH 2/2] drm: fix a memleak on mutex failure path

2015-04-26 Thread gr...@linuxhacker.ru
From: Oleg Drokin Need to free just allocated ctx allocation if we cannot get our config mutex. This one has been flagged by kbuild bot all the way back in August, but somehow nobody picked it up: https://lists.01.org/pipermail/kbuild/2014-August/001691.html Found with smatch. Signed-off-by: O

[PATCH v2] drm: fix a memleak on mutex failure path

2015-04-27 Thread gr...@linuxhacker.ru
From: Oleg Drokin Need to free just allocated ctx allocation if we cannot get our config mutex. This one has been flagged by kbuild bot all the way back in August, but somehow nobody picked it up: https://lists.01.org/pipermail/kbuild/2014-August/001691.html In addition there is another failure