]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b04eba31b5da551582a1c65bcb330b16d288caf
treed176c6b44f178b6d0afadf558254b2d440810167
parent061630d339068653f890597417c002a7d701f70b
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