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 c0a909e1d290..34ebbc191e46 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -204,7 +204,6 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs) | |||
204 | goto _error; | 204 | goto _error; |
205 | 205 | ||
206 | if (files) { | 206 | if (files) { |
207 | steal_locks(files); | ||
208 | put_files_struct(files); | 207 | put_files_struct(files); |
209 | files = NULL; | 208 | files = NULL; |
210 | } | 209 | } |
@@ -741,10 +740,10 @@ static int bm_fill_super(struct super_block * sb, void * data, int silent) | |||
741 | return err; | 740 | return err; |
742 | } | 741 | } |
743 | 742 | ||
744 | static struct super_block *bm_get_sb(struct file_system_type *fs_type, | 743 | static int bm_get_sb(struct file_system_type *fs_type, |
745 | int flags, const char *dev_name, void *data) | 744 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) |
746 | { | 745 | { |
747 | return get_sb_single(fs_type, flags, data, bm_fill_super); | 746 | return get_sb_single(fs_type, flags, data, bm_fill_super, mnt); |
748 | } | 747 | } |
749 | 748 | ||
750 | static struct linux_binfmt misc_format = { | 749 | static struct linux_binfmt misc_format = { |