diff options
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r-- | fs/sysfs/symlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 43cc5222f136..cbd95a4109de 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c | |||
@@ -82,12 +82,12 @@ int sysfs_create_link(struct kobject * kobj, struct kobject * target, const char | |||
82 | return -EFAULT; | 82 | return -EFAULT; |
83 | 83 | ||
84 | /* target->sd can go away beneath us but is protected with | 84 | /* target->sd can go away beneath us but is protected with |
85 | * kobj_sysfs_assoc_lock. Fetch target_sd from it. | 85 | * sysfs_assoc_lock. Fetch target_sd from it. |
86 | */ | 86 | */ |
87 | spin_lock(&kobj_sysfs_assoc_lock); | 87 | spin_lock(&sysfs_assoc_lock); |
88 | if (target->sd) | 88 | if (target->sd) |
89 | target_sd = sysfs_get(target->sd); | 89 | target_sd = sysfs_get(target->sd); |
90 | spin_unlock(&kobj_sysfs_assoc_lock); | 90 | spin_unlock(&sysfs_assoc_lock); |
91 | 91 | ||
92 | if (!target_sd) | 92 | if (!target_sd) |
93 | return -ENOENT; | 93 | return -ENOENT; |