linux/arch/powerpc
Tony Breeds 74609f4536 [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>
2007-06-26 14:41:19 +10:00
..
boot [POWERPC] Fix building of COFF zImages 2007-06-07 22:21:31 +10:00
configs [POWERPC] Update defconfigs 2007-06-26 14:38:47 +10:00
kernel [POWERPC] Fix VDSO gettimeofday() when called with NULL struct timeval 2007-06-26 14:41:19 +10:00
lib [POWERPC] rheap - eliminates internal fragments caused by alignment 2007-06-19 22:35:53 -05:00
math-emu
mm [POWERPC] PowerPC: Prevent data exception in kernel space (32-bit) 2007-06-20 22:07:38 +10:00
oprofile Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
platforms [POWERPC] Fix powermac late initcall to only run on powermac 2007-06-20 22:07:38 +10:00
sysdev [POWERPC] QE: fix Kconfig 'select' warning with UCC_FAST 2007-05-23 07:23:55 -05:00
xmon Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
.gitignore
Kconfig [POWERPC] Fix Kconfig warning 2007-05-23 09:51:46 -05:00
Kconfig.debug Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
Makefile [POWERPC] Create a zImage for legacy iSeries 2007-06-02 21:01:56 +10:00