--- linux-2.4.27-rc3-pa6mm/arch/parisc/kernel/sys_parisc32.c.Orig	2004-07-30 11:07:29.935992560 +0200
+++ linux-2.4.27-rc3-pa6mm/arch/parisc/kernel/sys_parisc32.c	2004-07-30 11:17:38.881418784 +0200
@@ -1195,14 +1195,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 *)(unsigned long)data, &data_page);
 	if (err)
 		goto type_out;
