aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/lockd/svclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index 84c4d5e04ebb..2f4d8fa66689 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -505,12 +505,12 @@ nlmsvc_testlock(struct svc_rqst *rqstp, struct nlm_file *file,
505 goto out; 505 goto out;
506 } 506 }
507 if (block->b_flags & B_GOT_CALLBACK) { 507 if (block->b_flags & B_GOT_CALLBACK) {
508 nlmsvc_unlink_block(block);
508 if (block->b_fl != NULL 509 if (block->b_fl != NULL
509 && block->b_fl->fl_type != F_UNLCK) { 510 && block->b_fl->fl_type != F_UNLCK) {
510 lock->fl = *block->b_fl; 511 lock->fl = *block->b_fl;
511 goto conf_lock; 512 goto conf_lock;
512 } else { 513 } else {
513 nlmsvc_unlink_block(block);
514 ret = nlm_granted; 514 ret = nlm_granted;
515 goto out; 515 goto out;
516 } 516 }