mirror-linux/drivers/gpu/drm/tegra
Fedor Pchelkin 32e5a120a5 drm/tegra: put drm_gem_object ref on error in tegra_fb_create
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
2024-02-22 18:29:22 +01:00
..
Kconfig
Makefile
dc.c
dc.h
dp.c
dp.h
dpaux.c drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe 2023-12-14 18:27:11 +01:00
dpaux.h
drm.c drm/tegra: Do not assume that a NULL domain means no DMA IOMMU 2024-02-01 13:17:21 +01:00
drm.h drm/tegra: include drm/drm_edid.h only where needed 2023-12-14 18:21:32 +01:00
dsi.c drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe() 2023-12-14 18:39:10 +01:00
dsi.h
falcon.c
falcon.h
fb.c drm/tegra: put drm_gem_object ref on error in tegra_fb_create 2024-02-22 18:29:22 +01:00
fbdev.c
firewall.c
gem.c drm/tegra: gem: Do not return NULL in tegra_bo_mmap() 2023-10-11 22:52:44 +02:00
gem.h
gr2d.c
gr2d.h
gr3d.c
gr3d.h
hda.c
hda.h
hdmi.c ASoC: hdmi-codec: drop drm/drm_edid.h include 2024-01-16 16:07:28 +02:00
hdmi.h
hub.c drm/tegra: hub: Increase buffer size to ensure all possible values can be stored 2023-10-11 22:52:43 +02:00
hub.h
mipi-phy.c
mipi-phy.h
nvdec.c
output.c drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe() 2023-12-14 18:39:42 +01:00
plane.c
plane.h
rgb.c drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe() 2023-12-14 18:39:10 +01:00
riscv.c
riscv.h
sor.c drm/tegra: include drm/drm_edid.h only where needed 2023-12-14 18:21:32 +01:00
sor.h
submit.c
submit.h
trace.c
trace.h
uapi.c
uapi.h
vic.c
vic.h