drm/qxl: unref cursor bo when finished with it
authorRay Strode <rstrode@redhat.com>
Mon, 27 Nov 2017 21:50:09 +0000 (16:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:25 +0000 (15:42 +0100)
commitb51521c9a191083033d3d8d7174e41d33b71a9bf
tree36974e464f305cf72b934f4a7fbb64dbf9c7da4f
parent15cdc016f109e2b8b7ede8c68c413c9b97c09fa8
drm/qxl: unref cursor bo when finished with it

commit 16c6db3688734b27487a42d0c2a1062d0b2bad03 upstream.

qxl_cursor_atomic_update allocs a bo for the cursor that
it never frees up at the end of the function.

This commit fixes that.

Signed-off-by: Ray Strode <rstrode@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/qxl/qxl_display.c