svn commit: r328520 - head/sys/dev/ofw

Warner Losh imp at FreeBSD.org
Sun Jan 28 23:58:23 UTC 2018


Author: imp
Date: Sun Jan 28 23:58:22 2018
New Revision: 328520
URL: https://svnweb.freebsd.org/changeset/base/328520

Log:
  Out of an abundance of caution, NUL out the first byte in the PNP
  info.

Modified:
  head/sys/dev/ofw/ofw_bus_subr.c

Modified: head/sys/dev/ofw/ofw_bus_subr.c
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c	Sun Jan 28 21:30:57 2018	(r328519)
+++ head/sys/dev/ofw/ofw_bus_subr.c	Sun Jan 28 23:58:22 2018	(r328520)
@@ -90,6 +90,7 @@ ofw_bus_gen_child_pnpinfo_str(device_t cbdev, device_t
     size_t buflen)
 {
 
+	*buf = '\0';
 	if (ofw_bus_get_name(child) != NULL) {
 		strlcat(buf, "name=", buflen);
 		strlcat(buf, ofw_bus_get_name(child), buflen);


More information about the svn-src-head mailing list