drm/tegra: Add error check for NVDEC firmware memory allocation
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 13 Apr 2023 08:22:01 +0000 (11:22 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Jul 2023 16:41:59 +0000 (18:41 +0200)
commitcf8d3223218744d29793071ec6d61eba29057d90
treec51b8435c1b98e6e8dc12f688bcb8984cdab6191
parentaeedd3a82678d89627bdd020a28e0af35ff45552
drm/tegra: Add error check for NVDEC firmware memory allocation

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