Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 20:46:29 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322803 - head/sys/kern
Message-ID:  <201708222046.v7MKkTAQ095627@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708222046.v7MKkTAQ095627>