linux-stable/drivers/gpu/drm/tegra
Fedor Pchelkin 240c4f1159 drm/tegra: put drm_gem_object ref on error in tegra_fb_create
[ Upstream commit 32e5a120a5 ]

Inside tegra_fb_create(), drm_gem_object_lookup() increments ref count of
the found object. But if the following size check fails then the last
found object's ref count should be put there as the unreferencing loop
can't detect this situation.

Found by Linux Verification Center (linuxtesting.org).

Fixes: de2ba664c3 ("gpu: host1x: drm: Add memory manager and fb")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231215093356.12067-1-pchelkin@ispras.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:29 -04:00
..
dc.c drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+ 2024-03-26 18:21:24 -04:00
dc.h drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+ 2024-03-26 18:21:24 -04:00
dp.c
dp.h
dpaux.c drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe 2024-03-26 18:21:24 -04:00
dpaux.h
drm.c
drm.h
dsi.c drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe() 2024-03-26 18:21:24 -04:00
dsi.h
falcon.c
falcon.h
fb.c drm/tegra: put drm_gem_object ref on error in tegra_fb_create 2024-03-26 18:21:29 -04:00
firewall.c drm/tegra: firewall: Check for is_addr_reg existence in IMM check 2023-03-10 09:39:26 +01:00
gem.c
gem.h
gr2d.c
gr2d.h
gr3d.c
gr3d.h
hda.c
hda.h
hdmi.c
hdmi.h
hub.c
hub.h
Kconfig drm/tegra: dpaux: Populate AUX bus 2024-03-26 18:21:24 -04:00
Makefile
mipi-phy.c
mipi-phy.h
output.c drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe() 2024-03-26 18:21:24 -04:00
plane.c
plane.h
rgb.c drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe() 2024-03-26 18:21:24 -04:00
sor.c drm/tegra: Avoid potential 32-bit integer overflow 2023-05-24 17:36:44 +01:00
sor.h
submit.c
submit.h
trace.c
trace.h
uapi.c
uapi.h
vic.c
vic.h