drm/vmwgfx: Fix a buffer object leak
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 26 Apr 2018 07:59:30 +0000 (09:59 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 26 Apr 2018 07:59:30 +0000 (09:59 +0200)
commit13f149d47392782baafd96d54d4e65f3b5ca342f
treeffe44499e1727a862fba3974ae8672a63c7eca97
parent21fbd085e62ff9a11318f5a9aba55e56e8503173
drm/vmwgfx: Fix a buffer object leak

A buffer object leak was introduced when fixing a premature buffer
object release. Fix this.

Cc: <stable@vger.kernel.org>
Fixes: 73a88250b709 ("Fix a destoy-while-held mutex problem.")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c