projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c177872
)
drm/nouveau/acr: Abort loading ACR if no firmware was found
author
Karol Herbst
<kherbst@redhat.com>
Mon, 22 May 2023 20:18:38 +0000
(22:18 +0200)
committer
Karol Herbst
<kherbst@redhat.com>
Wed, 12 Jul 2023 20:34:41 +0000
(22:34 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c
index 795f3a649b122172013a50f879419d6dcdf6d1a5..9b8ca4e898f903661eb588843698ca11e0d7c200 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c
@@
-224,7
+224,7
@@
nvkm_acr_oneinit(struct nvkm_subdev *subdev)
u64 falcons;
int ret, i;
- if (list_empty(&acr->hsfw)) {
+ if (list_empty(&acr->hsfw)
|| !acr->func || !acr->func->wpr_layout
) {
nvkm_debug(subdev, "No HSFW(s)\n");
nvkm_acr_cleanup(acr);
return 0;