drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 29 Nov 2016 06:49:19 +0000 (07:49 +0100)
committerSinclair Yeh <syeh@vmware.com>
Tue, 18 Jul 2017 06:40:55 +0000 (23:40 -0700)
commitd7f482313322892b28f3c14958177cd15c6a113d
treefdd1a16f10442a207f1ce55db59647602de8e0c1
parent1a4adb05632e902c9819af7c5eeded5243f1dc6c
drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'

'vmw_cotable_alloc()' returns an error pointer on error, not NULL.
Propagate the error code, instead of returning -ENOMEM unconditionally

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_context.c