aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorLin Yujun <[email protected]>2022-09-14 11:37:55 +0800
committerDan Williams <[email protected]>2022-09-29 17:54:29 -0700
commit6a02124c87f0b61dcaaeb65e7fd406d8afb40fd4 (patch)
treed8820bef499644eb9dc0594d02b71023919df64d /tools/perf/scripts/python/bin/export-to-postgresql-report
parent0f702033a64bd3adcd57c9d5cf91ea64c08fad42 (diff)
ACPI: HMAT: Release platform device in case of platform_device_add_data() fails
The platform device is not released when platform_device_add_data() fails. And platform_device_put() perfom one more pointer check than put_device() to check for errors in the 'pdev' pointer. Use platform_device_put() to release platform device in platform_device_add()/platform_device_add_data()/ platform_device_add_resources() error case. Fixes: c01044cc8191 ("ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device") Signed-off-by: Lin Yujun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions