diff options
| author | Markus Elfring <[email protected]> | 2023-04-15 22:30:30 +0200 |
|---|---|---|
| committer | Karol Herbst <[email protected]> | 2023-04-17 19:08:03 +0200 |
| commit | 5149545dbcbb15105312014201b9c0aa859c6044 (patch) | |
| tree | feb4a36b7815c8131a8f9f0173bd3449ef638592 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 6ef481d45f8b37dc9cca11d7126bd2c99e8a0943 (diff) | |
drm/nouveau/bios/power_budget: Move an expression into a macro call parameter in nvbios_power_budget_header()
The address of a data structure member was determined before
a corresponding null pointer check in the implementation of
the function “nvbios_power_budget_header”.
Thus avoid the risk for undefined behaviour by moving the usage
of an expression into a parameter for a macro call in one if branch.
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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions