summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>2024-12-28 22:34:15 +0200
committerJohannes Berg <johannes.berg@intel.com>2025-01-13 15:26:40 +0100
commit80e96206a3ef348fbd658d98f2f43149c36df8bc (patch)
tree6283eb1d726d95480b9a22a423f803d3d6be39c3 /tools/perf/scripts/python/check-perf-trace.py
parentf24501c928a5afc60ef4a13e7b8fd4d2bcd6acb4 (diff)
wifi: iwlwifi: avoid memory leak
A caller of iwl_acpi_get_dsm_object must free the returned object. iwl_acpi_get_dsm_integer returns immediately without freeing it if the expected size is more than 8 bytes. Fix that. Note that with the current code this will never happen, since the caller of iwl_acpi_get_dsm_integer already checks that the expected size if either 1 or 4 bytes, so it can't exceed 8 bytes. While at it, print the DSM value instead of the return value, as this was the intention in the first place. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20241228223206.bf61eaab99f8.Ibdc5df02f885208c222456d42c889c43b7e3b2f7@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions