[parisc-linux] David S. Miller's patch fix: N4k: failled to mount / rw since initscripts-2.85-12

Joel Soete soete.joel at tiscali.be
Fri Mar 26 10:19:48 MST 2004


Hi all,

Here is the corresponding patch for 2.6.5-rc2-pa3:
--- linux-2.6.5-rc2-pa3/arch/parisc/kernel/sys_parisc32.c.orig	2004-03-01
07:47:39.000000000 +0100
+++ linux-2.6.5-rc2-pa3/arch/parisc/kernel/sys_parisc32.c	2004-03-26 17:15:41.300604464
+0100
@@ -651,14 +651,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;
==========><=========

hth,
    Joel

PS1: because of bad wraping of my webmail interface I also attach it, sorry.
PS2: let me know if somebody is still interested by the corresponding 2.4
patch?

----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr



-------------- next part --------------
A non-text attachment was scrubbed...
Name: sys_parisc32.c.diff
Type: application/octet-stream
Size: 672 bytes
Desc: not available
Url : http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/20040326/e3606ee2/sys_parisc32.c.obj


More information about the parisc-linux mailing list