kernel_samsung_a53x/drivers/gpu/drm/tegra
Fedor Pchelkin adeb26449e drm/tegra: put drm_gem_object ref on error in tegra_fb_create
[ Upstream commit 32e5a120a5105bce01561978ee55aee8e40ac0dc ]

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: de2ba664c30f ("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-11-19 08:44:54 +01:00
..
dc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpaux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpaux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsi.c drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe() 2024-11-19 08:44:50 +01:00
dsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
falcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
falcon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb.c drm/tegra: put drm_gem_object ref on error in tegra_fb_create 2024-11-19 08:44:54 +01:00
gem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr2d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr2d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr3d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gr3d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hda.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hda.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hub.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mipi-phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mipi-phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
output.c drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe() 2024-11-19 08:44:50 +01:00
plane.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plane.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rgb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sor.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00