diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -685,6 +685,10 @@ static struct file *__dentry_open(struct dentry *dentry, struct vfsmount *mnt, | |||
685 | if (error) | 685 | if (error) |
686 | goto cleanup_all; | 686 | goto cleanup_all; |
687 | 687 | ||
688 | error = break_lease(inode, f->f_flags); | ||
689 | if (error) | ||
690 | goto cleanup_all; | ||
691 | |||
688 | if (!open && f->f_op) | 692 | if (!open && f->f_op) |
689 | open = f->f_op->open; | 693 | open = f->f_op->open; |
690 | if (open) { | 694 | if (open) { |