lockd: release reference to nsm_handle in nlm_host_rebooted
authorJeff Layton <jlayton@redhat.com>
Fri, 5 Feb 2010 20:09:12 +0000 (15:09 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 8 Feb 2010 21:20:35 +0000 (16:20 -0500)
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>
fs/lockd/host.c

index 4600c2037b8bb8dd71dee46c2cac3cec5cfce296..bb464d12104c44dd67b0eee1496c49a8df138ac7 100644 (file)
@@ -479,8 +479,8 @@ again:      mutex_lock(&nlm_host_mutex);
                        }
                }
        }
-
        mutex_unlock(&nlm_host_mutex);
+       nsm_release(nsm);
 }
 
 /*