aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorCatalin Marinas <[email protected]>2013-05-15 16:49:35 +0000
committerRafael J. Wysocki <[email protected]>2013-05-15 19:42:24 +0000
commit7a26b53070f0099dfcfc9d499458de861c5c4859 (patch)
tree89bd2af1edb86fb2ad99662460ec42f98cbaa26f /tools/perf/util/scripting-engines/trace-event-perl.c
parentACPI / AC: Add sleep quirk for Thinkpad e530 (diff)
downloadkernel-7a26b53070f0099dfcfc9d499458de861c5c4859.tar.gz
kernel-7a26b53070f0099dfcfc9d499458de861c5c4859.zip
ACPI / scan: Fix memory leak on acpi_scan_init_hotplug() error path
Following commit 6b772e8f9 (ACPI: Update PNPID match handling for notify), the acpi_scan_init_hotplug() calls acpi_set_pnp_ids() which allocates acpi_hardware_id and copies a few strings (kstrdup). If the devices does not have hardware_id set, the function exits without freeing the previously allocated ids (and kmemleak complains). This patch calls simply changes 'return' on error to a 'goto out' which calls acpi_free_pnp_ids(). Reported-by: Larry Finger <[email protected]> Signed-off-by: Catalin Marinas <[email protected]> Reviewed-by: Toshi Kani <[email protected]> Tested-by: Toshi Kani <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions