Files
linux/drivers/gpu/drm/vmwgfx
Murray McAllister 36796bd899 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-22 08:17:20 +02:00
..
2016-08-12 10:41:46 +02:00
2016-02-08 09:55:53 +01:00
2015-08-12 10:06:56 -07:00
2016-08-16 16:30:50 +02:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00