From: Tony Breeds Date: Mon, 25 Jun 2007 23:50:32 +0000 (+1000) Subject: [POWERPC] Fix VDSO gettimeofday() when called with NULL struct timeval X-Git-Tag: v2.6.22-rc7~48^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74609f4536f2b8fd6a48381bbbe3cd37da20a527;p=pandora-kernel.git [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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed