Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2012 14:06:17 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r237838 - stable/8/usr.sbin/cpucontrol
Message-ID:  <201206301406.q5UE6HMn022981@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Jun 30 14:06:17 2012
New Revision: 237838
URL: http://svn.freebsd.org/changeset/base/237838

Log:
  MFC r236504: cpucontrol: use CPUCTL_UPDATE ioctl on correct file
  descriptor (in amd case)

Modified:
  stable/8/usr.sbin/cpucontrol/amd.c
Directory Properties:
  stable/8/usr.sbin/cpucontrol/   (props changed)

Modified: stable/8/usr.sbin/cpucontrol/amd.c
==============================================================================
--- stable/8/usr.sbin/cpucontrol/amd.c	Sat Jun 30 14:05:35 2012	(r237837)
+++ stable/8/usr.sbin/cpucontrol/amd.c	Sat Jun 30 14:06:17 2012	(r237838)
@@ -162,7 +162,7 @@ amd_update(const char *dev, const char *
 
 		args.data = fw_image;
 		args.size = st.st_size;
-		error = ioctl(fd, CPUCTL_UPDATE, &args);
+		error = ioctl(devfd, CPUCTL_UPDATE, &args);
 		if (error < 0) {
 			fprintf(stderr, "failed.\n");
 			warn("ioctl()");



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