svn commit: r237837 - stable/9/usr.sbin/cpucontrol

Andriy Gapon avg at FreeBSD.org
Sat Jun 30 14:05:36 UTC 2012


Author: avg
Date: Sat Jun 30 14:05:35 2012
New Revision: 237837
URL: http://svn.freebsd.org/changeset/base/237837

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

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

Modified: stable/9/usr.sbin/cpucontrol/amd.c
==============================================================================
--- stable/9/usr.sbin/cpucontrol/amd.c	Sat Jun 30 13:17:21 2012	(r237836)
+++ stable/9/usr.sbin/cpucontrol/amd.c	Sat Jun 30 14:05:35 2012	(r237837)
@@ -160,7 +160,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()");


More information about the svn-src-stable-9 mailing list