Murray McAllister bcd6aa7b6c drm/vmwgfx: NULL pointer dereference from vmw_cmd_dx_view_define()
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: d80efd5cb3de ("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>
2019-05-21 10:23:10 +02:00
..
2019-01-24 13:20:42 +01:00
2019-04-12 14:27:45 +10:00
2019-04-24 11:23:20 +09:00
2019-05-14 10:45:03 -07:00
2019-01-24 13:20:42 +01:00
2019-05-08 21:35:19 -07:00
2019-04-17 20:56:40 +08:00
2019-04-24 10:12:50 +10:00
2019-01-29 15:45:21 +01:00
2019-04-15 15:51:49 +10:00
2019-05-08 21:35:19 -07:00
2019-01-29 15:45:21 +01:00
2019-01-24 13:20:42 +01:00
2019-04-01 11:00:18 +02:00
2019-05-08 21:35:19 -07:00
2019-05-08 21:35:19 -07:00
2019-05-08 21:35:19 -07:00
2019-05-08 21:35:19 -07:00
2019-04-15 15:51:49 +10:00
2019-01-24 13:20:42 +01:00
2019-04-15 15:51:49 +10:00
2019-04-25 10:02:10 -04:00
2019-04-29 12:37:53 +02:00
2019-01-12 13:07:58 +01:00
2019-05-08 21:35:19 -07:00
2019-05-14 10:45:03 -07:00