diff options
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/locks.c b/fs/locks.c index 924e4a7fb1d5..3c23fd261022 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1348,9 +1348,7 @@ static int __setlease(struct file *filp, long arg, struct file_lock **flp) | |||
1348 | 1348 | ||
1349 | time_out_leases(inode); | 1349 | time_out_leases(inode); |
1350 | 1350 | ||
1351 | error = -EINVAL; | 1351 | BUG_ON(!(*flp)->fl_lmops->fl_break); |
1352 | if (!flp || !(*flp) || !(*flp)->fl_lmops || !(*flp)->fl_lmops->fl_break) | ||
1353 | goto out; | ||
1354 | 1352 | ||
1355 | lease = *flp; | 1353 | lease = *flp; |
1356 | 1354 | ||