drm/vmwgfx: Fix command defines and checks
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Feb 2014 12:19:36 +0000 (13:19 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Feb 2014 18:31:45 +0000 (19:31 +0100)
commit36e952c1ed8ca44bca245c465c8293e175dd9222
treec08437752f106cf8e88e9308f2491abb8aa94917
parentb055211d941eb6cb7b285be580cf6e51a01d2f44
drm/vmwgfx: Fix command defines and checks

Make sure all guest-backed object commands are properly packed.
Have the command verifier treat uninitialized command entries as invalid
rather than dereferencing NULL pointers.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/svga3d_reg.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c