aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2012-07-22 18:32:00 +0000
committerMark Brown <[email protected]>2012-07-22 18:32:00 +0000
commit3384fb98845dc014770caa224d61a2effd258ca5 (patch)
tree8189134a4938632e2d06e93af04c9fc1f3c2d4c9 /fs/locks.c
parentMerge branches 'regulator-core', 'regulator-dt' and 'regulator-dummy' into re... (diff)
parentregulator: add new lp8788 regulator driver (diff)
downloadkernel-3384fb98845dc014770caa224d61a2effd258ca5.tar.gz
kernel-3384fb98845dc014770caa224d61a2effd258ca5.zip
Merge branch 'regulator-drivers' into regulator-next
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 814c51d0de47..fce6238d52c1 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1465,7 +1465,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
case F_WRLCK:
return generic_add_lease(filp, arg, flp);
default:
- BUG();
+ return -EINVAL;
}
}
EXPORT_SYMBOL(generic_setlease);