]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5721cf441269bda45f78368fd568cc8e7c5ac4fc
tree38ba3c4f2cd8b9a750481a943cb2ec56cd519be0
parent8cb190560a4913c0076bc85e228e1f04acfc391a
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