nouveau: Fix null dereference in nouveau_pushbuf_destroy
authorSam Edwards <cfsworks@gmail.com>
Tue, 28 Feb 2023 22:46:30 +0000 (22:46 +0000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 6 Mar 2023 20:25:10 +0000 (20:25 +0000)
commit9de997bde67df43a9e10a05f9b48419ee4cfec25
treee2914b86b96ede111d4866339738e71729d6f0b9
parent34d45df8ff71e7e780b363e60bcc6ff57b15d94a
nouveau: Fix null dereference in nouveau_pushbuf_destroy

This may happen if the Nouveau device fails to initialize before
the pushbuf is set up; the abort logic will call this either way.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21611>
src/gallium/drivers/nouveau/nouveau_screen.c