aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-12-12 06:11:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-18 15:50:16 -0800
commitecfbf6fd9c03be7dfe3eafc3846641b9d463607b (patch)
treec7383b5397df9dbf918f330e57324b3603a0f18d /lib/kobject.c
parentkernfs: add kernfs_dir_ops (diff)
downloadwireguard-linux-ecfbf6fd9c03be7dfe3eafc3846641b9d463607b.tar.xz
wireguard-linux-ecfbf6fd9c03be7dfe3eafc3846641b9d463607b.zip
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>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions