From owner-svn-src-all@freebsd.org Tue Aug 22 20:46:30 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94E64DE30B9; Tue, 22 Aug 2017 20:46:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 640CD74971; Tue, 22 Aug 2017 20:46:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7MKkTcW095628; Tue, 22 Aug 2017 20:46:29 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7MKkTAQ095627; Tue, 22 Aug 2017 20:46:29 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201708222046.v7MKkTAQ095627@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Tue, 22 Aug 2017 20:46:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322803 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 322803 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2017 20:46:30 -0000 Author: jkim Date: Tue Aug 22 20:46:29 2017 New Revision: 322803 URL: https://svnweb.freebsd.org/changeset/base/322803 Log: Fix size to copyout(9) for cpuset_getid(2). MFC after: 3 days Modified: head/sys/kern/kern_cpuset.c Modified: head/sys/kern/kern_cpuset.c ============================================================================== --- head/sys/kern/kern_cpuset.c Tue Aug 22 19:56:30 2017 (r322802) +++ head/sys/kern/kern_cpuset.c Tue Aug 22 20:46:29 2017 (r322803) @@ -1062,7 +1062,7 @@ kern_cpuset_getid(struct thread *td, cpulevel_t level, tmpid = set->cs_id; cpuset_rel(set); if (error == 0) - error = copyout(&tmpid, setid, sizeof(id)); + error = copyout(&tmpid, setid, sizeof(tmpid)); return (error); }