patch-2.4.26 linux-2.4.26/arch/sparc64/kernel/sys_sparc32.c
Next file: linux-2.4.26/arch/sparc64/kernel/sys_sunos32.c
Previous file: linux-2.4.26/arch/sparc64/defconfig
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
2004-04-14 06:05:27.000000000 -0700
- Orig file:
linux-2.4.25/arch/sparc64/kernel/sys_sparc32.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/arch/sparc64/kernel/sys_sparc32.c linux-2.4.26/arch/sparc64/kernel/sys_sparc32.c
@@ -1799,14 +1799,13 @@
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;
}
- is_smb = !strcmp((char *)type_page, SMBFS_NAME);
- is_ncp = !strcmp((char *)type_page, NCPFS_NAME);
-
err = copy_mount_stuff_to_kernel((const void *)AA(data), &data_page);
if (err)
goto type_out;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)