Date: Fri, 25 Aug 2017 05:41:28 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r322876 - stable/11/sys/kern Message-ID: <201708250541.v7P5fSCV094235@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Fri Aug 25 05:41:28 2017 New Revision: 322876 URL: https://svnweb.freebsd.org/changeset/base/322876 Log: MFC: r322803 Fix size to copyout(9) for cpuset_getid(2). Modified: stable/11/sys/kern/kern_cpuset.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/kern/kern_cpuset.c ============================================================================== --- stable/11/sys/kern/kern_cpuset.c Fri Aug 25 04:33:06 2017 (r322875) +++ stable/11/sys/kern/kern_cpuset.c Fri Aug 25 05:41:28 2017 (r322876) @@ -1063,7 +1063,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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708250541.v7P5fSCV094235>