Commit 521d0453 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Greg Kroah-Hartman

sysfs: sysfs_delete_link handle symlinks from untagged to tagged directories.

This happens for network devices when SYSFS_DEPRECATED is enabled.
Signed-off-by: default avatarEric W. Biederman <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 96d6523a
......@@ -135,7 +135,7 @@ void sysfs_delete_link(struct kobject *kobj, struct kobject *targ,
const void *ns = NULL;
if (targ->sd)
if (targ->sd && sysfs_ns_type(kobj->sd))
ns = targ->sd->s_ns;
sysfs_hash_and_remove(kobj->sd, ns, name);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment