Browse Source

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>
Jeff Layton 15 years ago
parent
commit
cdd30fa166
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/lockd/host.c

+ 1 - 1
fs/lockd/host.c

@@ -479,8 +479,8 @@ again:	mutex_lock(&nlm_host_mutex);
 			}
 			}
 		}
 		}
 	}
 	}
-
 	mutex_unlock(&nlm_host_mutex);
 	mutex_unlock(&nlm_host_mutex);
+	nsm_release(nsm);
 }
 }
 
 
 /*
 /*