diff options
| author | Markus Elfring <[email protected]> | 2023-04-16 08:50:12 +0000 |
|---|---|---|
| committer | Karol Herbst <[email protected]> | 2023-04-17 17:08:04 +0000 |
| commit | 4aa35a0130d6b8afbefc9ef530a521fb0fb9b8e1 (patch) | |
| tree | f2b78684ded7e408a80a28e4f4a929a5665b047e /drivers/gpu/drm/scheduler/sched_entity.c | |
| parent | drm/nouveau/pci: Move an expression into a function call parameter in nvkm_pc... (diff) | |
| download | kernel-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
