]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[GFS2] fix typo in locking/dlm
authorDavid Teigland <teigland@redhat.com>
Thu, 20 Jul 2006 14:06:34 +0000 (09:06 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Jul 2006 05:57:40 +0000 (01:57 -0400)
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>
fs/gfs2/locking/dlm/lock.c

index e74f1215672f941c3faeacf2ce7faae1bbf81f35..f769eac1a34ac79b6ce2012ef1c7e7d8feda7d62 100644 (file)
@@ -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);