Unverified Commit aed5f40a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6836 fs: sysfs: Fix reference leak in sysfs_break_active_protection()

parents 4e1f5fef c1d7b976
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -429,6 +429,8 @@ struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
	kn = kernfs_find_and_get(kobj->sd, attr->name);
	if (kn)
		kernfs_break_active_protection(kn);
	else
		kobject_put(kobj);
	return kn;
}
EXPORT_SYMBOL_GPL(sysfs_break_active_protection);