drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Apr 2017 09:12:08 +0000 (12:12 +0300)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 10:07:35 +0000 (12:07 +0200)
commitf0c62e9878024300319ba2438adc7b06c6b9c448
tree088e34315269965222b35f7ac8e089f911948b2d
parentbbd5fefeea59412af4b4a325c2743f53a1d6c417
drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()

If vmalloc() fails then we need to a bit of cleanup before returning.

Cc: <stable@vger.kernel.org>
Fixes: fb1d9738ca05 ("drm/vmwgfx: Add DRM driver for VMware Virtual GPU")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c