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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to