drm/vmwgfx: Fix an incorrect OOM return value
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 28 Aug 2014 09:35:25 +0000 (11:35 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 1 Sep 2014 10:29:18 +0000 (12:29 +0200)
commit9f9cb84f416f07f57d75789d77e7d47d6141f44e
treea442670280614a478e85a74834eb119dbf505fb5
parenta284e9d14e35b776807c3a40dd1ff1e05429d4a4
drm/vmwgfx: Fix an incorrect OOM return value

At the same time, make error paths return early for clarity.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: jakob Bornecrantz <jakob@vmware.com>
Cc: <stable@vger.kernel.org>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c