Commit 4f2ade37 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: fix mount compat translation bug

From Dave Miller:

We weren't handling a NULL 'type' argument to mount() properly,
f.e. this happens legitimately when changing the options of an
existing mount.
parent 67f3362a
......@@ -405,13 +405,12 @@ asmlinkage long sys32_mount(char *dev_name, char *dir_name, char *type, unsigned
if (err)
goto out;
if (!type_page) {
err = -EINVAL;
goto out;
}
if (type_page) {
is_smb = !strcmp((char *)type_page, SMBFS_NAME);
is_ncp = !strcmp((char *)type_page, NCPFS_NAME);
} else {
is_smb = is_ncp = 0;
}
err = copy_mount_stuff_to_kernel((const void *)AA(data), &data_page);
if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment