]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.20.2/gfs2-fix-locking-mistake.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / gfs2-fix-locking-mistake.patch
1 From stable-bounces@linux.kernel.org Wed Feb 21 14:39:16 2007
2 From: Josef Whiter <jwhiter@redhat.com>
3 Date: Wed, 21 Feb 2007 14:37:59 -0800
4 Subject: gfs2: fix locking mistake
5 To: mm-commits@vger.kernel.org
6 Cc: jwhiter@redhat.com, stable@kernel.org, swhiteho@redhat.com
7 Message-ID: <200702212237.l1LMbxF0028615@shell0.pdx.osdl.net>
8
9 From: Josef Whiter <jwhiter@redhat.com>
10
11 Fix a locking mistake in the quota code, we do a mutex_lock instead of a
12 mutex_unlock.
13
14 Signed-off-by: Josef Whiter <jwhiter@redhat.com>
15 Cc: Steven Whitehouse <swhiteho@redhat.com>
16 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18
19 ---
20 fs/gfs2/quota.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- linux-2.6.20.1.orig/fs/gfs2/quota.c
24 +++ linux-2.6.20.1/fs/gfs2/quota.c
25 @@ -279,7 +279,7 @@ static int bh_get(struct gfs2_quota_data
26 (bh->b_data + sizeof(struct gfs2_meta_header) +
27 offset * sizeof(struct gfs2_quota_change));
28
29 - mutex_lock(&sdp->sd_quota_mutex);
30 + mutex_unlock(&sdp->sd_quota_mutex);
31
32 return 0;
33