kobject: new_device->kref wasn't putted after error in kobject_move()
authorDmitriy Monakhov <dmonakhov@sw.ru>
Sat, 3 Mar 2007 13:11:21 +0000 (16:11 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 23:32:58 +0000 (15:32 -0800)
commit9e993efb0da827634778554070f3c3ec4bdade33
tree6852c36270693571cac9a5802a067e9c7bae3452
parenta2807dbcbd681e1f36e813fb26e2f24d15018b91
kobject: new_device->kref wasn't putted after error in kobject_move()

If error happen we jump to "out" label, in this case new_device not yet
became the parent but it wasn't putted.

Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject.c