summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_64.c
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2007-06-26 01:50:32 +0200
committerPaul Mackerras <paulus@samba.org>2007-06-26 06:41:19 +0200
commit74609f4536f2b8fd6a48381bbbe3cd37da20a527 (patch)
treef73c0abf05df85497b0323290e6cfff948a7fadd /arch/powerpc/kernel/signal_64.c
parent[POWERPC] Update defconfigs (diff)
downloadlinux-74609f4536f2b8fd6a48381bbbe3cd37da20a527.tar.xz
linux-74609f4536f2b8fd6a48381bbbe3cd37da20a527.zip
[POWERPC] Fix VDSO gettimeofday() when called with NULL struct timeval
Consider the prototype for gettimeofday(): int gettimofday(struct timeval *tv, struct timezone *tz); Although it is valid to call with /either/ tv or tz being NULL, and the C version of sys_gettimeofday() supports this, the current version of gettimeofday() in the VDSO will SEGV if called with a NULL tv. This adds a check for tv being NULL so that it doesn't SEGV. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
0 files changed, 0 insertions, 0 deletions