sysfs: fix /sys/module/*/holders after sysfs logic change
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 29 Nov 2007 22:46:11 +0000 (23:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:36 +0000 (20:40 -0800)
commit97c146ef075dc40ae34407c03d3860fc3850b8e8
treedf4346fbbf9f7129fbd929ce43ceac819ff3c7df
parentda231fd5d113ab6da5dab7a2d2c38d0a540f939c
sysfs: fix /sys/module/*/holders after sysfs logic change

Sysfs symlinks now require fully registered kobjects as a target,
otherwise the call to create a symlink will fail. Here we register
the kobject before we request the symlink in the holders directory.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: Tejun Heo <teheo@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/module.c