diff options
Diffstat (limited to 'fs/dlm/lockspace.c')
-rw-r--r-- | fs/dlm/lockspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index b750f13d0328..5c108c49cb8c 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c | |||
@@ -579,7 +579,7 @@ static int new_lockspace(char *name, int namelen, void **lockspace, | |||
579 | kfree(ls->ls_rsbtbl); | 579 | kfree(ls->ls_rsbtbl); |
580 | out_lsfree: | 580 | out_lsfree: |
581 | if (do_unreg) | 581 | if (do_unreg) |
582 | kobject_unregister(&ls->ls_kobj); | 582 | kobject_put(&ls->ls_kobj); |
583 | else | 583 | else |
584 | kfree(ls); | 584 | kfree(ls); |
585 | out: | 585 | out: |
@@ -728,7 +728,7 @@ static int release_lockspace(struct dlm_ls *ls, int force) | |||
728 | dlm_clear_members(ls); | 728 | dlm_clear_members(ls); |
729 | dlm_clear_members_gone(ls); | 729 | dlm_clear_members_gone(ls); |
730 | kfree(ls->ls_node_array); | 730 | kfree(ls->ls_node_array); |
731 | kobject_unregister(&ls->ls_kobj); | 731 | kobject_put(&ls->ls_kobj); |
732 | /* The ls structure will be freed when the kobject is done with */ | 732 | /* The ls structure will be freed when the kobject is done with */ |
733 | 733 | ||
734 | mutex_lock(&ls_lock); | 734 | mutex_lock(&ls_lock); |