Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c127e451 authored by Arvind Yadav's avatar Arvind Yadav Committed by Greg Kroah-Hartman
Browse files

staging: lustre: ldlm: Remove a attribute group from a kobject



All attribute group created during ldlm_setup() should be removed
in ldlm_cleanup().

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c976752e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1093,8 +1093,10 @@ static int ldlm_cleanup(void)
		kset_unregister(ldlm_ns_kset);
	if (ldlm_svc_kset)
		kset_unregister(ldlm_svc_kset);
	if (ldlm_kobj)
	if (ldlm_kobj) {
		sysfs_remove_group(ldlm_kobj, &ldlm_attr_group);
		kobject_put(ldlm_kobj);
	}

	ldlm_debugfs_cleanup();