aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/scheduler/sched_entity.c
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2023-04-16 08:50:12 +0000
committerKarol Herbst <[email protected]>2023-04-17 17:08:04 +0000
commit4aa35a0130d6b8afbefc9ef530a521fb0fb9b8e1 (patch)
treef2b78684ded7e408a80a28e4f4a929a5665b047e /drivers/gpu/drm/scheduler/sched_entity.c
parentdrm/nouveau/pci: Move an expression into a function call parameter in nvkm_pc... (diff)
downloadkernel-4aa35a0130d6b8afbefc9ef530a521fb0fb9b8e1.tar.gz
kernel-4aa35a0130d6b8afbefc9ef530a521fb0fb9b8e1.zip
drm/nouveau/therm: Move an assignment statement behind a null pointer check in two functions
The address of a data structure member was determined before a corresponding null pointer check in the implementation of the functions “nvkm_fanpwm_create” and “nvkm_fantog_create”. Thus avoid the risk for undefined behaviour by moving the assignment for the data structure member “fan” behind two null pointer checks. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Signed-off-by: Karol Herbst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
0 files changed, 0 insertions, 0 deletions