Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 12:59:48 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327283 - head/usr.sbin/cpucontrol
Message-ID:  <201712281259.vBSCxmRg008550@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712281259.vBSCxmRg008550>