diff options
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index d73d75591a39..07a4996cca3f 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -203,7 +203,6 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs) | |||
203 | goto _error; | 203 | goto _error; |
204 | 204 | ||
205 | if (files) { | 205 | if (files) { |
206 | steal_locks(files); | ||
207 | put_files_struct(files); | 206 | put_files_struct(files); |
208 | files = NULL; | 207 | files = NULL; |
209 | } | 208 | } |
@@ -740,10 +739,10 @@ static int bm_fill_super(struct super_block * sb, void * data, int silent) | |||
740 | return err; | 739 | return err; |
741 | } | 740 | } |
742 | 741 | ||
743 | static struct super_block *bm_get_sb(struct file_system_type *fs_type, | 742 | static int bm_get_sb(struct file_system_type *fs_type, |
744 | int flags, const char *dev_name, void *data) | 743 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) |
745 | { | 744 | { |
746 | return get_sb_single(fs_type, flags, data, bm_fill_super); | 745 | return get_sb_single(fs_type, flags, data, bm_fill_super, mnt); |
747 | } | 746 | } |
748 | 747 | ||
749 | static struct linux_binfmt misc_format = { | 748 | static struct linux_binfmt misc_format = { |