lockd: double unlock in next_host_state()
authorDan Carpenter <error27@gmail.com>
Sun, 2 Jan 2011 20:20:42 +0000 (20:20 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 4 Jan 2011 18:10:37 +0000 (13:10 -0500)
We unlock again after we goto out.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/host.c

index c106d6a93e5df3573db58321f9d3f6adabe32fd1..5f1bcb2f06f3e89878bed401d1ad2a23f2e0070f 100644 (file)
@@ -532,7 +532,6 @@ static struct nlm_host *next_host_state(struct hlist_head *cache,
                        host->h_state++;
 
                        nlm_get_host(host);
-                       mutex_unlock(&nlm_host_mutex);
                        goto out;
                }
        }