Skip to content

Commit cdd30fa

Browse files
jtlaytonJ. Bruce Fields
authored andcommitted
lockd: release reference to nsm_handle in nlm_host_rebooted
nsm_reboot_lookup takes a reference to the nsm_handle that it returns, but nlm_host_rebooted never releases that reference. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
1 parent aa696a6 commit cdd30fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/lockd/host.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ again: mutex_lock(&nlm_host_mutex);
479479
}
480480
}
481481
}
482-
483482
mutex_unlock(&nlm_host_mutex);
483+
nsm_release(nsm);
484484
}
485485

486486
/*

0 commit comments

Comments
 (0)