aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2023-04-16 07:45:54 +0200
committerKarol Herbst <[email protected]>2023-04-17 19:08:03 +0200
commit41239aa4f751fbc39481a4af726faa347a26da83 (patch)
treeaa15e280d142cf87b5edc80dc5c3954b081590fc /tools/perf/scripts/python/export-to-postgresql.py
parent5149545dbcbb15105312014201b9c0aa859c6044 (diff)
drm/nouveau/clk: Move a variable assignment behind a null pointer check in nvkm_pstate_new()
The address of a data structure member was determined before a corresponding null pointer check in the implementation of the function “nvkm_pstate_new”. Thus avoid the risk for undefined behaviour by moving the assignment for the variable “cstate” 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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions