compat: nanosleep: Clarify error handling
authorThomas Gleixner <tglx@linutronix.de>
Sat, 6 Sep 2014 10:18:07 +0000 (12:18 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 6 Sep 2014 10:58:18 +0000 (12:58 +0200)
commit849151dd5481bc8acb1d287a299b5d6a4ca9f1c3
treee14c9ddf3bda4da1668d4c4c52a77d5e74aea293
parent40bea039593dfc7f3f9814dab844f6db43ae580b
compat: nanosleep: Clarify error handling

The error handling in compat_sys_nanosleep() is correct, but
completely non obvious. Document it and restrict it to the
-ERESTART_RESTARTBLOCK return value for clarity.

Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/compat.c