Date: Sat, 30 Jun 2012 14:05:36 +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-9@freebsd.org Subject: svn commit: r237837 - stable/9/usr.sbin/cpucontrol Message-ID: <201206301405.q5UE5aF7022912@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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()");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206301405.q5UE5aF7022912>