aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 124ccb1d38a0..764cc9c201a5 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -727,6 +727,7 @@ static int do_dentry_open(struct file *f,
727 727
728cleanup_all: 728cleanup_all:
729 fops_put(f->f_op); 729 fops_put(f->f_op);
730 file_sb_list_del(f);
730 if (f->f_mode & FMODE_WRITE) { 731 if (f->f_mode & FMODE_WRITE) {
731 put_write_access(inode); 732 put_write_access(inode);
732 if (!special_file(inode->i_mode)) { 733 if (!special_file(inode->i_mode)) {
@@ -740,7 +741,6 @@ cleanup_all:
740 mnt_drop_write(f->f_path.mnt); 741 mnt_drop_write(f->f_path.mnt);
741 } 742 }
742 } 743 }
743 file_sb_list_del(f);
744cleanup_file: 744cleanup_file:
745 path_put(&f->f_path); 745 path_put(&f->f_path);
746 f->f_path.mnt = NULL; 746 f->f_path.mnt = NULL;