Merge branch 'next/devel' of git://git.linaro.org/people/arnd/arm-soc
[deliverable/linux.git] / fs / open.c
index f711921094576c8b46f2aefe50d76da75bfe1c68..22c41b543f2dfc00ce74665e4fdf24db1d8321ac 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -685,6 +685,10 @@ static struct file *__dentry_open(struct dentry *dentry, struct vfsmount *mnt,
        if (error)
                goto cleanup_all;
 
+       error = break_lease(inode, f->f_flags);
+       if (error)
+               goto cleanup_all;
+
        if (!open && f->f_op)
                open = f->f_op->open;
        if (open) {
This page took 0.02487 seconds and 5 git commands to generate.