diff options
author | 2014-02-12 00:52:49 +0100 | |
---|---|---|
committer | 2014-02-12 14:55:16 +0100 | |
commit | 0f6aa09e40c38d734f5d70762056116ca4a76126 (patch) | |
tree | b6c7d8d5133432e97ba9e42a6d3df94b1b828e4e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ACPI / hotplug: Fix panic on eject to ejected device (diff) | |
download | linux-dev-0f6aa09e40c38d734f5d70762056116ca4a76126.tar.xz linux-dev-0f6aa09e40c38d734f5d70762056116ca4a76126.zip |
ACPI / container: Fix error code path in container_device_attach()
To avoid leaking memory on errors from device_register(), do a
put_device() on the device object in question in the error code
path of container_device_attach().
Fixes: caa73ea158de (ACPI / hotplug / driver core: Handle containers in a special way)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions