]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kobject: check for duplicate names in kobject_rename
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 24 Oct 2007 23:52:31 +0000 (16:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 31 Oct 2007 04:52:33 +0000 (21:52 -0700)
commit34358c26a2c96b2a068dc44e0ac602106a466bce
tree36820739660152337e8e6fcbf4f21d97d1525208
parentfcd239d3d5575e5cc63aab5c33cf6dc66904f6d6
kobject: check for duplicate names in kobject_rename

This should catch any duplicate names before we try to tell sysfs to
rename the object.  This happens a lot with older versions of udev and
the network rename scripts.

Cc: David Miller <davem@davemloft.net>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject.c