patch-2.4.25 linux-2.4.25/fs/namespace.c
Next file: linux-2.4.25/fs/ncpfs/dir.c
Previous file: linux-2.4.25/fs/msdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/fs/namespace.c
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.24/fs/namespace.c linux-2.4.25/fs/namespace.c
@@ -715,6 +715,9 @@
if (dev_name && !memchr(dev_name, 0, PAGE_SIZE))
return -EINVAL;
+ if (data_page)
+ ((char *)data_page)[PAGE_SIZE - 1] = 0;
+
/* Separate the per-mountpoint flags */
if (flags & MS_NOSUID)
mnt_flags |= MNT_NOSUID;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)