patch-2.4.26 linux-2.4.26/arch/sparc/kernel/sys_sunos.c
Next file: linux-2.4.26/arch/sparc64/defconfig
Previous file: linux-2.4.26/arch/sparc/defconfig
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
2004-04-14 06:05:27.000000000 -0700
- Orig file:
linux-2.4.25/arch/sparc/kernel/sys_sunos.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.25/arch/sparc/kernel/sys_sunos.c linux-2.4.26/arch/sparc/kernel/sys_sunos.c
@@ -688,8 +688,8 @@
static int sunos_nfs_mount(char *dir_name, int linux_flags, void *data)
{
- int server_fd;
- char *the_name;
+ int server_fd, err;
+ char *the_name, *mount_page;
struct nfs_mount_data linux_nfs_mount;
struct sunos_nfs_mount_args sunos_mount;
@@ -742,7 +742,16 @@
linux_nfs_mount.hostname [255] = 0;
putname (the_name);
- return do_mount ("", dir_name, "nfs", linux_flags, &linux_nfs_mount);
+ mount_page = (char *) get_zeroed_page(GFP_KERNEL);
+ if (!mount_page)
+ return -ENOMEM;
+
+ memcpy(mount_page, &linux_nfs_mount, sizeof(linux_nfs_mount));
+
+ err = do_mount("", dir_name, "nfs", linux_flags, mount_page);
+
+ free_page((unsigned long) mount_page);
+ return err;
}
asmlinkage int
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)