drm/vmwgfx: Fix surface framebuffer check for guest-backed surfaces
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2014 07:51:36 +0000 (08:51 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 17 Jan 2014 06:52:39 +0000 (07:52 +0100)
commitb360a3cecd3a2e14e56798b570007d4763f21b74
treed176c6b44f178b6d0afadf558254b2d440810167
parent7cba9062e689441ac68bde63104517aa0d3bae1b
drm/vmwgfx: Fix surface framebuffer check for guest-backed surfaces

With guest-backed surfaces, surface->sizes == NULL, causing a kernel oops.
Use the base_size member instead.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c