mirror_ubuntu-kernels/drivers/gpu/drm/nouveau
Markus Elfring 488c1ce6a8 drm/nouveau/pci: Move a variable assignment behind condition checks in nvkm_pcie_set_link()
The address of a data structure member was determined before
a corresponding null pointer check in the implementation of
the function “nvkm_pcie_set_link”.

Thus avoid the risk for undefined behaviour by moving the assignment
for the variable “subdev” behind some condition checks.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b31019b1-bb73-ed93-3378-e551e17a4f32@web.de
2023-04-17 19:08:04 +02:00
..
dispnv04 drm/nouveau: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
dispnv50 Merge drm/drm-next into drm-misc-next 2023-03-13 09:27:50 +01:00
include A fix for nouveau preventing the system shutdown and one for a build 2023-03-07 05:42:34 +10:00
nvif drm/nouveau/disp: Fix nvif_outp_acquire_dp() argument size 2023-01-27 11:42:41 -08:00
nvkm drm/nouveau/pci: Move a variable assignment behind condition checks in nvkm_pcie_set_link() 2023-04-17 19:08:04 +02:00
Kbuild drm/nouveau/kms: switch to drm fbdev helpers 2022-11-09 10:44:27 +10:00
Kconfig drm/nouveau: Remove support for legacy contexts/buffers 2023-01-13 09:22:02 +01:00
nouveau_abi16.c drm/nouveau/fifo: add new channel classes 2022-11-09 10:44:50 +10:00
nouveau_abi16.h drm/nouveau/ce/gv100-: move method buffer to ce ctx 2022-07-13 13:56:50 +10:00
nouveau_acpi.c drm/nouveau: Register ACPI video backlight when nv_backlight registration fails (v2) 2022-09-03 12:17:26 +02:00
nouveau_acpi.h drm/nouveau: Register ACPI video backlight when nv_backlight registration fails (v2) 2022-09-03 12:17:26 +02:00
nouveau_backlight.c drm/nouveau: Add support to control backlight using bl_power for nva3. 2022-11-11 15:56:33 +01:00
nouveau_bios.c drm/nouveau/disp: add output class 2022-07-27 09:05:49 +10:00
nouveau_bios.h
nouveau_bo74c1.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo85b5.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo90b5.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo0039.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo5039.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo9039.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_bo.c drm/ttm: prevent moving of pinned BOs 2023-02-06 12:10:17 +01:00
nouveau_bo.h drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_boa0b5.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_chan.c drm/nouveau/fifo/ga100-: initial support 2022-11-09 10:44:50 +10:00
nouveau_chan.h drm/nouveau/fifo: add new channel classes 2022-11-09 10:44:50 +10:00
nouveau_connector.c drm/nouveau/disp: expose conn event class 2022-11-09 10:44:27 +10:00
nouveau_connector.h drm/nouveau/disp: expose conn event class 2022-11-09 10:44:27 +10:00
nouveau_crtc.h drm/nouveau/disp: expose head event class 2022-11-09 10:44:27 +10:00
nouveau_debugfs.c drm/nouveau/debugfs: Replace five seq_printf() calls by seq_puts() in nouveau_debugfs_pstate_get() 2023-04-17 19:08:03 +02:00
nouveau_debugfs.h
nouveau_display.c drm/nouveau/kms: switch to drm fbdev helpers 2022-11-09 10:44:27 +10:00
nouveau_display.h
nouveau_dma.c drm/nouveau/fifo: add new channel classes 2022-11-09 10:44:50 +10:00
nouveau_dma.h
nouveau_dmem.c nouveau/dmem: Remove duplicated include in nouveau_dmem.c 2022-10-21 17:13:17 -04:00
nouveau_dmem.h
nouveau_dp.c drm/nouveau/disp: expose conn event class 2022-11-09 10:44:27 +10:00
nouveau_drm.c drm/nouveau: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
nouveau_drv.h drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_encoder.h drm/nouveau/disp: expose conn event class 2022-11-09 10:44:27 +10:00
nouveau_fence.c drm/nouveau/fifo: expose per-runlist CHID information 2022-11-09 10:44:47 +10:00
nouveau_fence.h drm/nouveau/fifo: expose non-stall intr in host channel event class 2022-11-09 10:44:27 +10:00
nouveau_gem.c drm/nouveau: stop using ttm_bo_wait 2023-01-18 15:57:52 +01:00
nouveau_gem.h
nouveau_hwmon.c drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks 2023-03-06 19:42:50 -05:00
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_led.c
nouveau_led.h drm/nouveau/led: explicitly include linux/leds.h 2023-02-15 18:05:57 -05:00
nouveau_mem.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_mem.h drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_nvif.c drm/nouveau/nvkm: rip out old notify 2022-11-09 10:44:27 +10:00
nouveau_platform.c
nouveau_platform.h
nouveau_prime.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_reg.h
nouveau_sgdma.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
nouveau_svm.c drm/nouveau/fault: expose replayable fault buffer event class 2022-11-09 10:44:27 +10:00
nouveau_svm.h
nouveau_ttm.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
nouveau_ttm.h
nouveau_usif.c drm/nouveau/nvkm: rip out old notify 2022-11-09 10:44:27 +10:00
nouveau_usif.h
nouveau_vga.c drm/nouveau: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
nouveau_vga.h
nouveau_vmm.c
nouveau_vmm.h
nv04_fence.c
nv10_fence.c
nv10_fence.h
nv17_fence.c
nv50_display.h
nv50_fence.c
nv84_fence.c drm/nouveau/fifo/ga100-: initial support 2022-11-09 10:44:50 +10:00
nvc0_fence.c