Skip to content

Commit

Permalink
lockd: double unlock in next_host_state()
Browse files Browse the repository at this point in the history
We unlock again after we goto out.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Dan Carpenter authored and Trond Myklebust committed Jan 4, 2011
1 parent 878215f commit 51f128e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 51f128e

Please sign in to comment.