aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2023-04-15 21:24:43 +0200
committerKarol Herbst <[email protected]>2023-04-17 19:08:03 +0200
commite1b570db8687c993e7a87516387a3bb3b5e63ac6 (patch)
tree0b7a56d57c31e396ce19c799f84172190ef4f335 /tools/perf/scripts/python
parent3778724bec53a3585cde6aed8c75ae3f085c3dcb (diff)
drm/nouveau/debugfs: Move a variable assignment behind a null pointer check in nouveau_debugfs_pstate_get()
The address of a data structure member was determined before a corresponding null pointer check in the implementation of the function “nouveau_debugfs_pstate_get”. Thus avoid the risk for undefined behaviour by moving the assignment for the variable “ctrl” behind the null pointer check. 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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions