commit | 7411d89535ce803404678eaf7e2f7ce095cf46b2 | [log] [tgz] |
---|---|---|
author | Tony Luck <tony.luck@intel.com> | Wed May 16 13:58:29 2012 -0700 |
committer | Tony Luck <tony.luck@intel.com> | Wed May 16 13:58:29 2012 -0700 |
tree | 98341b09e8e1a24639c1cb47f8e332b5811ba2ce | |
parent | c7173271f3f63738e7ec5a2f074472c5feed3518 [diff] |
[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>