From: Rafael J. Wysocki Date: Tue, 11 Feb 2014 23:52:49 +0000 (+0100) Subject: ACPI / container: Fix error code path in container_device_attach() X-Git-Tag: v3.14-rc3~19^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f6aa09e40c38d734f5d70762056116ca4a76126;p=pandora-kernel.git 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 Reviewed-by: Yasuaki Ishimatsu --- Reading git-diff-tree failed