2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/nouveau
Ben Skeggs d133036a0b drm/nouveau/gsp: fix potential leak of memory used during acpi init
If any of the ACPI calls fail, memory allocated for the input buffer
would be leaked.  Fix failure paths to free allocated memory.

Also add checks to ensure the allocations succeeded in the first place.

Reported-by: Danilo Krummrich <dakr@kernel.org>
Fixes: 176fdcbddf ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250617040036.2932-1-bskeggs@nvidia.com
2025-07-07 16:32:44 +02:00
..
dispnv04 drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
dispnv50 drm/nouveau/kms: add support for GB20x 2025-05-19 07:14:45 +10:00
include drm/nouveau/kms: add support for GB20x 2025-05-19 07:14:45 +10:00
nvif drm/nouveau/kms: add support for GB20x 2025-05-19 07:14:45 +10:00
nvkm drm/nouveau/gsp: fix potential leak of memory used during acpi init 2025-07-07 16:32:44 +02:00
gv100_fence.c drm/nouveau/gv100-: switch to volta semaphore methods 2025-05-19 06:29:26 +10:00
Kbuild drm/nouveau/gv100-: switch to volta semaphore methods 2025-05-19 06:29:26 +10:00
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
nouveau_abi16.c drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA 2025-05-19 07:14:44 +10:00
nouveau_abi16.h
nouveau_acpi.c ACPI: video: Fix random crashes due to bad kfree() 2025-01-13 21:09:10 +01:00
nouveau_acpi.h
nouveau_backlight.c drm/nouveau/bl: increase buffer size to avoid truncate warning 2025-06-13 16:41:43 +02:00
nouveau_bios.c
nouveau_bios.h
nouveau_bo74c1.c
nouveau_bo85b5.c
nouveau_bo90b5.c
nouveau_bo0039.c
nouveau_bo5039.c
nouveau_bo9039.c
nouveau_bo.c drm/nouveau: add support for GB20x 2025-05-19 07:14:45 +10:00
nouveau_bo.h drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
nouveau_boa0b5.c
nouveau_chan.c drm/nouveau: add support for GB20x 2025-05-19 07:14:45 +10:00
nouveau_chan.h drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
nouveau_connector.c drm/nouveau/kms: add support for GB20x 2025-05-19 07:14:45 +10:00
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c drm/nouveau: Do not fail module init on debugfs errors 2025-07-03 23:56:33 +02:00
nouveau_debugfs.h drm/nouveau: Do not fail module init on debugfs errors 2025-07-03 23:56:33 +02:00
nouveau_display.c drm/nouveau/disp: Move tiling functions to dispnv50/tile.h 2024-11-04 12:38:06 +01:00
nouveau_display.h
nouveau_dma.c drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA 2025-05-19 07:14:44 +10:00
nouveau_dma.h drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA 2025-05-19 07:14:44 +10:00
nouveau_dmem.c drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
nouveau_dmem.h
nouveau_dp.c drm/nouveau/dp: Use the generic helper to control LTTPR transparent mode 2025-02-25 18:33:48 +02:00
nouveau_drm.c drm/nouveau: Do not fail module init on debugfs errors 2025-07-03 23:56:33 +02:00
nouveau_drv.h drm: remove driver date from struct drm_driver and all drivers 2024-12-05 12:35:42 +02:00
nouveau_encoder.h drm/nouveau: vendor in drm_encoder_slave API 2025-01-07 15:05:11 +01:00
nouveau_exec.c drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
nouveau_exec.h
nouveau_fence.c Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
nouveau_fence.h drm/nouveau/gv100-: switch to volta semaphore methods 2025-05-19 06:29:26 +10:00
nouveau_gem.c drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
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 Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
nouveau_platform.h
nouveau_prime.c
nouveau_reg.h
nouveau_sched.c drm/sched: Use struct for drm_sched_init() params 2025-02-12 11:59:52 +01:00
nouveau_sched.h
nouveau_sgdma.c
nouveau_svm.c Merge drm/drm-next into drm-misc-next 2025-04-07 14:35:48 +02:00
nouveau_svm.h
nouveau_ttm.c drm/nouveau: improve handling of 64-bit BARs 2025-05-19 07:14:35 +10:00
nouveau_ttm.h
nouveau_uvmm.c
nouveau_uvmm.h
nouveau_vga.c drm/client: Move client event handlers to drm_client_event.c 2024-10-18 09:23:03 +02:00
nouveau_vga.h drm/nouveau: Do not set struct drm_driver.lastclose 2024-08-13 16:21:09 +02:00
nouveau_vmm.c
nouveau_vmm.h
nv04_fence.c
nv10_fence.c drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
nv10_fence.h
nv17_fence.c drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
nv50_display.h
nv50_fence.c drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
nv84_fence.c drm/nouveau: add helper functions for allocating pinned/cpu-mapped bos 2025-05-19 07:14:44 +10:00
nvc0_fence.c