drm/nouveau/gem: fix "refcount_t: underflow; use-after-free"
authorKarol Herbst <kherbst@redhat.com>
Tue, 6 Oct 2020 22:08:09 +0000 (00:08 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 29 Oct 2020 23:34:12 +0000 (09:34 +1000)
commit925681454d7b557d404b5d28ef4469fac1b2e105
tree38ba3c4f2cd8b9a750481a943cb2ec56cd519be0
parent24d9422e26ea75118acf00172f83417c296f5b5f
drm/nouveau/gem: fix "refcount_t: underflow; use-after-free"

we can't use nouveau_bo_ref here as no ttm object was allocated and
nouveau_bo_ref mainly deals with that. Simply deallocate the object.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c