projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeedd3a
)
drm/tegra: Add error check for NVDEC firmware memory allocation
author
Mikko Perttunen
<mperttunen@nvidia.com>
Thu, 13 Apr 2023 08:22:01 +0000
(11:22 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 27 Jul 2023 16:41:59 +0000
(18:41 +0200)
The return value for tegra_drm_alloc was missing an error check.
Add one.
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230413082202.114721-1-cyndis@kapsi.fi
drivers/gpu/drm/tegra/nvdec.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/nvdec.c
b/drivers/gpu/drm/tegra/nvdec.c
index f821e36111a7047d52ebf51c34200fda132d4de9..9f57968392af60fc0cd18fded0eb3a864fba352f 100644
(file)
--- a/
drivers/gpu/drm/tegra/nvdec.c
+++ b/
drivers/gpu/drm/tegra/nvdec.c
@@
-274,6
+274,8
@@
static int nvdec_load_falcon_firmware(struct nvdec *nvdec)
return err;
} else {
virt = tegra_drm_alloc(tegra, size, &iova);
+ if (IS_ERR(virt))
+ return PTR_ERR(virt);
}
nvdec->falcon.firmware.virt = virt;