From: Rafael J. Wysocki Date: Thu, 12 Dec 2013 05:11:02 +0000 (+0100) Subject: Driver core: Fix device_add_attrs() error code path X-Git-Tag: v3.14-rc1~151^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecfbf6fd9c03be7dfe3eafc3846641b9d463607b;p=pandora-kernel.git Driver core: Fix device_add_attrs() error code path If the addition of dev_attr_online fails, device_add_attrs() should remove device attribute groups as well as type and class attribute groups before returning an error code. Make that happen. Signed-off-by: Rafael J. Wysocki Acked-by: Toshi Kani Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed