summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-07-20 09:06:34 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-21 01:57:40 -0400
commitc5921fd02e6c720938141a45f1f9dbd71b17fff2 (patch)
tree0a9b4e0702e20f5ffe05e9065135c55d757fb394 /fs/gfs2/locking
parent36098198184b0644537f4b2257d861e9bdf124bd (diff)
downloadop-kernel-dev-c5921fd02e6c720938141a45f1f9dbd71b17fff2.zip
op-kernel-dev-c5921fd02e6c720938141a45f1f9dbd71b17fff2.tar.gz
[GFS2] fix typo in locking/dlm
Typo causes the error value from the wrong lock to be checked. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking')
-rw-r--r--fs/gfs2/locking/dlm/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c
index e74f121..f769eac 100644
--- a/fs/gfs2/locking/dlm/lock.c
+++ b/fs/gfs2/locking/dlm/lock.c
@@ -430,7 +430,7 @@ static int hold_null_lock(struct gdlm_lock *lp)
init_completion(&lpn->ast_wait);
gdlm_do_lock(lpn);
wait_for_completion(&lpn->ast_wait);
- error = lp->lksb.sb_status;
+ error = lpn->lksb.sb_status;
if (error) {
printk(KERN_INFO "lock_dlm: hold_null_lock dlm error %d\n",
error);
OpenPOWER on IntegriCloud