aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/lustre/lustre/llite/file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index ca270f49e6aa..7c7ef7ec908e 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -1553,6 +1553,11 @@ ll_get_grouplock(struct inode *inode, struct file *file, unsigned long arg)
1553 struct ccc_grouplock grouplock; 1553 struct ccc_grouplock grouplock;
1554 int rc; 1554 int rc;
1555 1555
1556 if (arg == 0) {
1557 CWARN("group id for group lock must not be 0\n");
1558 return -EINVAL;
1559 }
1560
1556 if (ll_file_nolock(file)) 1561 if (ll_file_nolock(file))
1557 return -EOPNOTSUPP; 1562 return -EOPNOTSUPP;
1558 1563