svn commit: r327283 - head/usr.sbin/cpucontrol

Konstantin Belousov kib at FreeBSD.org
Thu Dec 28 12:59:50 UTC 2017


Author: kib
Date: Thu Dec 28 12:59:48 2017
New Revision: 327283
URL: https://svnweb.freebsd.org/changeset/base/327283

Log:
  Complete r327264 by fixing yet another return without cleanup.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/usr.sbin/cpucontrol/intel.c

Modified: head/usr.sbin/cpucontrol/intel.c
==============================================================================
--- head/usr.sbin/cpucontrol/intel.c	Thu Dec 28 08:25:47 2017	(r327282)
+++ head/usr.sbin/cpucontrol/intel.c	Thu Dec 28 12:59:48 2017	(r327283)
@@ -147,7 +147,7 @@ intel_update(const char *dev, const char *path)
 	fd = open(path, O_RDONLY, 0);
 	if (fd < 0) {
 		WARN(0, "open(%s)", path);
-		return;
+		goto fail;
 	}
 	error = fstat(fd, &st);
 	if (error != 0) {


More information about the svn-src-head mailing list