diff options
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r-- | fs/sysfs/symlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 0d48ea911508..aecb15f84557 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c | |||
@@ -183,7 +183,7 @@ int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, | |||
183 | goto out; | 183 | goto out; |
184 | 184 | ||
185 | result = -EINVAL; | 185 | result = -EINVAL; |
186 | if (sysfs_type(kn) != SYSFS_KOBJ_LINK) | 186 | if (kernfs_type(kn) != KERNFS_LINK) |
187 | goto out; | 187 | goto out; |
188 | if (kn->symlink.target_kn->priv != targ) | 188 | if (kn->symlink.target_kn->priv != targ) |
189 | goto out; | 189 | goto out; |