patch-2.4.26 linux-2.4.26/arch/sparc64/kernel/sys_sunos32.c
Next file: linux-2.4.26/arch/sparc64/mm/modutil.c
Previous file: linux-2.4.26/arch/sparc64/kernel/sys_sparc32.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
2004-04-14 06:05:28.000000000 -0700
- Orig file:
linux-2.4.25/arch/sparc64/kernel/sys_sunos32.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.25/arch/sparc64/kernel/sys_sunos32.c linux-2.4.26/arch/sparc64/kernel/sys_sunos32.c
@@ -654,8 +654,8 @@
/* XXXXXXXXXXXXXXXXXXXX */
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;
@@ -708,7 +708,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;
}
/* XXXXXXXXXXXXXXXXXXXX */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)