diff --git a/[refs] b/[refs] index 42cec28c262f..5c101229812d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f61f6da0d53842e849bab7f69e1431bd3de1136d +refs/heads/master: 80c30e8de4f81851b1f712bcc596e11d53bc76f1 diff --git a/trunk/fs/lockd/host.c b/trunk/fs/lockd/host.c index 5f1bcb2f06f3..b7c99bfb3da6 100644 --- a/trunk/fs/lockd/host.c +++ b/trunk/fs/lockd/host.c @@ -520,7 +520,7 @@ static struct nlm_host *next_host_state(struct hlist_head *cache, struct nsm_handle *nsm, const struct nlm_reboot *info) { - struct nlm_host *host = NULL; + struct nlm_host *host; struct hlist_head *chain; struct hlist_node *pos; @@ -532,12 +532,13 @@ static struct nlm_host *next_host_state(struct hlist_head *cache, host->h_state++; nlm_get_host(host); - goto out; + mutex_unlock(&nlm_host_mutex); + return host; } } -out: + mutex_unlock(&nlm_host_mutex); - return host; + return NULL; } /**