commit | ecfbf6fd9c03be7dfe3eafc3846641b9d463607b | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Dec 12 06:11:02 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 18 15:50:16 2013 -0800 |
tree | c7383b5397df9dbf918f330e57324b3603a0f18d | |
parent | 80b9bbefc345079bddc4959de016ba4074b0c8d6 [diff] |
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 <rafael.j.wysocki@intel.com> Acked-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>