[PATCH 1/1] drm/vmwgfx: avoid possible NULL pointer dereference

2016-08-23 Thread kbuild test robot
Hi Heinrich, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.8-rc3 next-20160823] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to reco

[PATCH 1/1] drm/vmwgfx: avoid possible NULL pointer dereference

2016-08-21 Thread Heinrich Schuchardt
The comment describing function vmw_cmd_res_reloc_add explicitely mentions p_val may be NULL. We should not assign a value (NULL) to *p_val in this case. Signed-off-by: Heinrich Schuchardt --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)