drm/nouveau/acr: Abort loading ACR if no firmware was found
authorKarol Herbst <kherbst@redhat.com>
Mon, 22 May 2023 20:18:38 +0000 (22:18 +0200)
committerKarol Herbst <kherbst@redhat.com>
Wed, 12 Jul 2023 20:34:41 +0000 (22:34 +0200)
commit938a06c8b7913455073506c33ae3bff029c3c4ef
treef3dd6adb5fb46a165386ab7d08509dc42b5f7011
parentc177872cb056e0b499af4717d8d1977017fd53df
drm/nouveau/acr: Abort loading ACR if no firmware was found

This fixes a NULL pointer access inside nvkm_acr_oneinit in case necessary
firmware files couldn't be loaded.

Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/212
Fixes: 4b569ded09fd ("drm/nouveau/acr/ga102: initial support")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230522201838.1496622-1-kherbst@redhat.com
drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c