kernel_samsung_a53x/drivers/gpu/drm/nouveau
Danilo Krummrich 609cacfd71 drm/nouveau: prime: fix refcount underflow
[ Upstream commit a9bf3efc33f1fbf88787a277f7349459283c9b95 ]

Calling nouveau_bo_ref() on a nouveau_bo without initializing it (and
hence the backing ttm_bo) leads to a refcount underflow.

Instead of calling nouveau_bo_ref() in the unwind path of
drm_gem_object_init(), clean things up manually.

Fixes: ab9ccb96a6e6 ("drm/nouveau: use prime helpers")
Reviewed-by: Ben Skeggs <bskeggs@nvidia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240718165959.3983-2-dakr@kernel.org
(cherry picked from commit 1b93f3e89d03cfc576636e195466a0d728ad8de5)
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:20 +01:00
..
dispnv04 drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes 2024-11-19 14:19:34 +01:00
dispnv50
include
nvif
nvkm nouveau: fix instmem race condition around ptr stores 2024-11-19 11:32:23 +01:00
Kbuild
Kconfig
nouveau_abi16.c
nouveau_abi16.h
nouveau_acpi.c
nouveau_acpi.h
nouveau_backlight.c
nouveau_bios.c drm: nv04: Fix out of bounds access 2024-11-19 11:32:21 +01:00
nouveau_bios.h
nouveau_bo.c
nouveau_bo.h
nouveau_bo0039.c
nouveau_bo74c1.c
nouveau_bo85b5.c
nouveau_bo90b5.c
nouveau_bo5039.c
nouveau_bo9039.c
nouveau_boa0b5.c
nouveau_chan.c
nouveau_chan.h
nouveau_connector.c drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes 2024-11-19 14:19:42 +01:00
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c
nouveau_debugfs.h
nouveau_display.c
nouveau_display.h
nouveau_dma.c
nouveau_dma.h
nouveau_dmem.c
nouveau_dmem.h
nouveau_dp.c drm/nouveau/dp: Don't probe eDP ports twice harder 2024-11-19 11:32:45 +01:00
nouveau_drm.c
nouveau_drv.h
nouveau_encoder.h
nouveau_fbcon.c
nouveau_fbcon.h
nouveau_fence.c
nouveau_fence.h
nouveau_gem.c
nouveau_gem.h
nouveau_hwmon.c
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_led.c
nouveau_led.h
nouveau_mem.c
nouveau_mem.h
nouveau_nvif.c
nouveau_platform.c
nouveau_platform.h
nouveau_prime.c drm/nouveau: prime: fix refcount underflow 2024-11-23 23:20:20 +01:00
nouveau_reg.h
nouveau_sgdma.c
nouveau_svm.c
nouveau_svm.h
nouveau_ttm.c
nouveau_ttm.h
nouveau_usif.c
nouveau_usif.h
nouveau_vga.c
nouveau_vga.h
nouveau_vmm.c nouveau/vmm: don't set addr on the fail path to avoid warning 2024-11-18 12:12:59 +01:00
nouveau_vmm.h
nv04_fbcon.c
nv04_fence.c
nv10_fence.c
nv10_fence.h
nv17_fence.c
nv50_display.h
nv50_fbcon.c
nv50_fence.c
nv84_fence.c
nvc0_fbcon.c
nvc0_fence.c