Skip to content
Commit 7411d895 authored by Tony Luck's avatar Tony Luck
Browse files

[IA64] Fix fast syscall version of getcpu()



GETCPU(2) says:
  int getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache);
  ...
  When either cpu or node is NULL nothing is written to the respective pointer.

But the fast system call path had no checks for NULL, and would
thus return -EFAULT if either (or both) of these were NULL.

Reported-by: default avatarMike Frysinger <vapier@gentoo.org>
Tested-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent c7173271
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment