mirror_ubuntu-kernels/drivers/gpu/drm/nouveau
Yuran Pereira b101d08451 drm/nouveau: Removes unnecessary args check in nouveau_uvmm_sm_prepare
Checking `args` after calling `op_map_prepare` is unnecessary since
if `op_map_prepare` was to be called with  NULL args, it would lead
to a NULL pointer dereference, thus never hitting that check.

Hence remove the check and add a note to remind users of this function
to ensure that args != NULL when calling this function for a map
operation as it was suggested by Danilo [1].

[1] https://lore.kernel.org/lkml/6a1ebcef-bade-45a0-9bd9-c05f0226eb88@redhat.com

Suggested-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Yuran Pereira <yuran.pereira@hotmail.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/GV1PR10MB65637F4BAABFE2D8E261E1DCE8B0A@GV1PR10MB6563.EURPRD10.PROD.OUTLOOK.COM
2023-11-30 01:04:12 +01:00
..
dispnv04 Merge tag 'drm-misc-next-2023-09-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-09-29 08:27:15 +10:00
dispnv50 Merge tag 'drm-intel-next-2023-11-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-11-23 20:25:24 +01:00
include nouveau: use an rwlock for the event lock. 2023-11-14 22:40:32 +01:00
nvif drm/nouveau/disp/r535: initial support 2023-10-31 15:08:16 +10:00
nvkm Linux 6.7-rc3 2023-11-28 11:55:56 +01:00
Kbuild drm/nouveau: implement new VM_BIND uAPI 2023-08-04 20:34:41 +02:00
Kconfig drm/gpuvm: allow building as module 2023-09-26 01:58:28 +02:00
nouveau_abi16.c drm/nouveau: enable dynamic job-flow control 2023-11-24 21:24:51 +01:00
nouveau_abi16.h drm/nouveau: implement 1:1 scheduler - entity relationship 2023-11-24 21:24:46 +01:00
nouveau_acpi.c drm/nouveau: Use pci_get_base_class() to reduce duplicated code 2023-09-28 16:54:54 -05:00
nouveau_acpi.h
nouveau_backlight.c drm/nouveau/disp: add output backlight control methods 2023-09-19 18:22:06 -04:00
nouveau_bios.c drm/nouveau/kms/tu102-: disable vbios parsing when running on RM 2023-10-31 15:08:15 +10:00
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: use GPUVM common infrastructure 2023-11-24 20:58:12 +01:00
nouveau_bo.h drm/nouveau: make use of the GPUVM's shared dma-resv 2023-11-13 18:18:12 +01:00
nouveau_boa0b5.c
nouveau_chan.c drm/nouveau: exec: report max pushs through getparam 2023-10-04 00:10:18 +02:00
nouveau_chan.h drm/nouveau: chan: provide nouveau_channel_kill() 2023-08-04 20:34:38 +02:00
nouveau_connector.c Merge tag 'drm-misc-next-2023-09-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-09-29 08:27:15 +10:00
nouveau_connector.h drm/nouveau/kms/nv50-: create connectors based on nvkm info 2023-09-19 18:22:27 -04:00
nouveau_crtc.h
nouveau_debugfs.c drm/nouveau: uvmm: rename 'umgr' to 'base' 2023-09-26 01:58:29 +02:00
nouveau_debugfs.h
nouveau_display.c nouveau: don't fail driver load if no display hw present. 2023-11-15 18:23:31 +01:00
nouveau_display.h
nouveau_dma.c drm/nouveau: uapi: don't pass NO_PREFETCH flag implicitly 2023-08-24 02:57:50 +02:00
nouveau_dma.h drm/nouveau: exec: report max pushs through getparam 2023-10-04 00:10:18 +02:00
nouveau_dmem.c drm/nouveau: fence: fix undefined fence state after emit 2023-08-31 00:46:23 +02:00
nouveau_dmem.h
nouveau_dp.c drm/nouveau/disp: move link training out of supervisor 2023-09-19 18:22:19 -04:00
nouveau_drm.c drm/nouveau: enable dynamic job-flow control 2023-11-24 21:24:51 +01:00
nouveau_drv.h drm/nouveau: implement 1:1 scheduler - entity relationship 2023-11-24 21:24:46 +01:00
nouveau_encoder.h drm/nouveau/disp: add dp train method 2023-09-19 18:22:18 -04:00
nouveau_exec.c drm/nouveau: enable dynamic job-flow control 2023-11-24 21:24:51 +01:00
nouveau_exec.h drm/nouveau: implement 1:1 scheduler - entity relationship 2023-11-24 21:24:46 +01:00
nouveau_fence.c drm/nouveau: fence: fix type cast warning in nouveau_fence_emit() 2023-09-20 00:15:50 +02:00
nouveau_fence.h drm/nouveau: fence: fix undefined fence state after emit 2023-08-31 00:46:23 +02:00
nouveau_gem.c drm/nouveau: make use of the GPUVM's shared dma-resv 2023-11-13 18:18:12 +01:00
nouveau_gem.h drm/nouveau: implement new VM_BIND uAPI 2023-08-04 20:34:41 +02:00
nouveau_hwmon.c
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_led.c
nouveau_led.h
nouveau_mem.c
nouveau_mem.h drm/nouveau: implement new VM_BIND uAPI 2023-08-04 20:34:41 +02:00
nouveau_nvif.c
nouveau_platform.c drm/nouveau: Convert to platform remove callback returning void 2023-11-21 09:18:53 +01:00
nouveau_platform.h
nouveau_prime.c drm/nouveau: implement new VM_BIND uAPI 2023-08-04 20:34:41 +02:00
nouveau_reg.h
nouveau_sched.c drm/sched: Fix compilation issues with DRM priority rename 2023-11-27 09:25:41 -05:00
nouveau_sched.h drm/nouveau: enable dynamic job-flow control 2023-11-24 21:24:51 +01:00
nouveau_sgdma.c
nouveau_svm.c nouveau/svm: Split assignment from if conditional 2023-09-29 11:19:43 -07:00
nouveau_svm.h
nouveau_ttm.c
nouveau_ttm.h
nouveau_usif.c
nouveau_usif.h
nouveau_uvmm.c drm/nouveau: Removes unnecessary args check in nouveau_uvmm_sm_prepare 2023-11-30 01:04:12 +01:00
nouveau_uvmm.h drm/nouveau: implement 1:1 scheduler - entity relationship 2023-11-24 21:24:46 +01:00
nouveau_vga.c
nouveau_vga.h
nouveau_vmm.c drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm 2023-08-04 20:34:39 +02:00
nouveau_vmm.h
nv04_fence.c drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer 2023-11-21 02:07:11 +01:00
nv10_fence.c
nv10_fence.h
nv17_fence.c
nv50_display.h
nv50_fence.c
nv84_fence.c
nvc0_fence.c