[IA64] Fix fast syscall version of getcpu()
authorTony Luck <tony.luck@intel.com>
Wed, 16 May 2012 20:58:29 +0000 (13:58 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 16 May 2012 20:58:29 +0000 (13:58 -0700)
commit7411d89535ce803404678eaf7e2f7ce095cf46b2
tree98341b09e8e1a24639c1cb47f8e332b5811ba2ce
parentc7173271f3f63738e7ec5a2f074472c5feed3518
[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: Mike Frysinger <vapier@gentoo.org>
Tested-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/fsys.S