aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_gem.c
diff options
context:
space:
mode:
authorYuran Pereira <[email protected]>2023-11-16 20:52:00 +0000
committerDanilo Krummrich <[email protected]>2023-11-30 00:04:12 +0000
commitb101d08451de6eaebd1a840e4885ce7ce73656ad (patch)
tree9a9d00676f2d3659457ec1ce49092d8353d93f47 /drivers/gpu/drm/omapdrm/omap_gem.c
parentDocumentation/gpu: VM_BIND locking document (diff)
downloadkernel-b101d08451de6eaebd1a840e4885ce7ce73656ad.tar.gz
kernel-b101d08451de6eaebd1a840e4885ce7ce73656ad.zip
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/[email protected] Suggested-by: Danilo Krummrich <[email protected]> Signed-off-by: Yuran Pereira <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/GV1PR10MB65637F4BAABFE2D8E261E1DCE8B0A@GV1PR10MB6563.EURPRD10.PROD.OUTLOOK.COM
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions