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

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)