lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-599b4840b0ea453c7d11e1798dcc8f494dcfd58a@git.kernel.org>
Date:	Mon, 27 Jun 2016 05:59:57 -0700
From:	tip-bot for Zev Weiss <tipbot@...or.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	hpa@...or.com, efault@....de, torvalds@...ux-foundation.org,
	tglx@...utronix.de, zev@...ilderbeest.net, mingo@...nel.org,
	peterz@...radead.org, linux-kernel@...r.kernel.org
Subject: [tip:sched/core] sched/core: Fix sched_getaffinity() return value
 kerneldoc comment

Commit-ID:  599b4840b0ea453c7d11e1798dcc8f494dcfd58a
Gitweb:     http://git.kernel.org/tip/599b4840b0ea453c7d11e1798dcc8f494dcfd58a
Author:     Zev Weiss <zev@...ilderbeest.net>
AuthorDate: Sun, 26 Jun 2016 16:13:23 -0500
Committer:  Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 27 Jun 2016 12:53:12 +0200

sched/core: Fix sched_getaffinity() return value kerneldoc comment

Previous version was probably written referencing the man page for
glibc's wrapper, but the wrapper's behavior differs from that of the
syscall itself in this case.

Signed-off-by: Zev Weiss <zev@...ilderbeest.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Mike Galbraith <efault@....de>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: linux-kernel@...r.kernel.org
Link: http://lkml.kernel.org/r/1466975603-25408-1-git-send-email-zev@bewilderbeest.net
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
 kernel/sched/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ede4fc..28da50a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4759,7 +4759,8 @@ out_unlock:
  * @len: length in bytes of the bitmask pointed to by user_mask_ptr
  * @user_mask_ptr: user-space pointer to hold the current cpu mask
  *
- * Return: 0 on success. An error code otherwise.
+ * Return: size of CPU mask copied to user_mask_ptr on success. An
+ * error code otherwise.
  */
 SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,
 		unsigned long __user *, user_mask_ptr)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ