Date: Sat, 26 Aug 2006 16:28:19 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_mount.c Message-ID: <200608261628.k7QGSJ9Z079829@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2006-08-26 16:28:19 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix another bug introduced with rev. 1.204; in vfs_donmount() if the 'vfs_getopt(optlist, "errmsg", (void **)&errmsg, &errmsg_len)' call fails, 'errmsg' is left uninitialized, making the later tests against NULL meaningless, and the uses bogus. Thus initialize 'errmsg' to NULL beforehand. [1] While at it, remove the superfluous assignment of 0 to 'errmsg_len' if the above mentioned call fails as it's already initialized to 0. Submitted by: Michael Plass [1] Revision Changes Path 1.231 +1 -2 src/sys/kern/vfs_mount.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608261628.k7QGSJ9Z079829>