]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: use kobject_put instead of _del after kobject_add
authorVeaceslav Falico <vfalico@gmail.com>
Tue, 29 Jul 2014 11:27:43 +0000 (13:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 18:16:09 +0000 (11:16 -0700)
commit72b0b06f3f49f22e3bca8b45e96552e646e9bc2b
tree1853311000071bd3dd799252e9a407a18909b924
parent499c029c600629c003660e67c75e52c5653caa8d
bonding: use kobject_put instead of _del after kobject_add

Otherwise the name of the kobject isn't getting freed and other stuff from
kobject_cleanup() isn't getting called. kobject_put() will call
kobject_del() on its own in kobject_cleanup().

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs_slave.c