aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/locks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 592faadbcec1..b9f3a0bed300 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1404,6 +1404,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
1404 rdlease_count++; 1404 rdlease_count++;
1405 } 1405 }
1406 1406
1407 error = -EAGAIN;
1407 if ((arg == F_RDLCK && (wrlease_count > 0)) || 1408 if ((arg == F_RDLCK && (wrlease_count > 0)) ||
1408 (arg == F_WRLCK && ((rdlease_count + wrlease_count) > 0))) 1409 (arg == F_WRLCK && ((rdlease_count + wrlease_count) > 0)))
1409 goto out; 1410 goto out;