linux-stable/drivers/gpu
Murray McAllister 095b1decb5 drm/vmwgfx: NULL pointer dereference from vmw_cmd_dx_view_define()
commit bcd6aa7b6c upstream.

If SVGA_3D_CMD_DX_DEFINE_RENDERTARGET_VIEW is called with a surface
ID of SVGA3D_INVALID_ID, the srf struct will remain NULL after
vmw_cmd_res_check(), leading to a null pointer dereference in
vmw_view_add().

Cc: <stable@vger.kernel.org>
Fixes: d80efd5cb3 ("drm/vmwgfx: Initial DX support")
Signed-off-by: Murray McAllister <murray.mcallister@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-19 08:20:58 +02:00
..
drm drm/vmwgfx: NULL pointer dereference from vmw_cmd_dx_view_define() 2019-06-19 08:20:58 +02:00
host1x gpu: host1x: Check whether size of unpin isn't 0 2018-08-24 13:09:14 +02:00
ipu-v3 gpu: ipu-v3: dp: fix CSC handling 2019-05-16 19:42:24 +02:00
vga
Makefile