From: Tony Luck Date: Wed, 16 May 2012 20:58:29 +0000 (-0700) Subject: [IA64] Fix fast syscall version of getcpu() X-Git-Tag: v3.5-rc1~121^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7411d89535ce803404678eaf7e2f7ce095cf46b2;p=pandora-kernel.git [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 Tested-by: Mike Frysinger Signed-off-by: Tony Luck --- Reading git-diff-tree failed