posix-timers: Fix oops in clock_nanosleep() with CLOCK_MONOTONIC_RAW
commitf175fe2d75ae60db85e8ca5c78da99789fcfe212
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Mon, 3 Aug 2009 02:48:19 +0000 (3 11:48 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:38 +0000 (16 14:18 -0700)
tree60e5fe2887830806b08b05c7ece80e32b113048c
parent0d88ecb27391b7bad5b5e3c1c815860b42f8aed2
posix-timers: Fix oops in clock_nanosleep() with CLOCK_MONOTONIC_RAW

commit 70d715fd0597f18528f389b5ac59102263067744 upstream.

Prevent calling do_nanosleep() with clockid
CLOCK_MONOTONIC_RAW, it may cause oops, such as NULL pointer
dereference.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <4A764FF3.50607@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/posix-timers.c