Date: Fri, 31 Oct 2014 15:07:52 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273908 - head/sys/arm/arm Message-ID: <201410311507.s9VF7qMo074289@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Fri Oct 31 15:07:51 2014 New Revision: 273908 URL: https://svnweb.freebsd.org/changeset/base/273908 Log: Fix usage of kern_getenv(). Modified: head/sys/arm/arm/machdep.c Modified: head/sys/arm/arm/machdep.c ============================================================================== --- head/sys/arm/arm/machdep.c Fri Oct 31 14:22:26 2014 (r273907) +++ head/sys/arm/arm/machdep.c Fri Oct 31 15:07:51 2014 (r273908) @@ -1246,8 +1246,10 @@ initarm(struct arm_boot_params *abp) print_kenv(); env = kern_getenv("kernelname"); - if (env != NULL) + if (env != NULL) { strlcpy(kernelname, env, sizeof(kernelname)); + freeenv(env); + } if (err_devmap != 0) printf("WARNING: could not fully configure devmap, error=%d\n",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410311507.s9VF7qMo074289>