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)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 06:16:26 +0000 (07:16 +0100)
commit7e25c935ec7b43c088d21b9c8e4a6b970375d933
treefceb103bfbcd363b7a34de6396dacaa9a6dc2433
parenta72c279dfbfa5b6c5832f16960d8dce31f27645b
drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()

commit f0c62e9878024300319ba2438adc7b06c6b9c448 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c