From owner-svn-src-stable-8@FreeBSD.ORG Sat Jun 30 14:06:17 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA9E21065670; Sat, 30 Jun 2012 14:06:17 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 955078FC17; Sat, 30 Jun 2012 14:06:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5UE6HcR022983; Sat, 30 Jun 2012 14:06:17 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5UE6HMn022981; Sat, 30 Jun 2012 14:06:17 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201206301406.q5UE6HMn022981@svn.freebsd.org> From: Andriy Gapon Date: Sat, 30 Jun 2012 14:06:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237838 - stable/8/usr.sbin/cpucontrol X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2012 14:06:17 -0000 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()");