Commit 82cc45b0 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] s390: compat_timer_settime.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

sys_timer_settime returns EINVAL if *new is NULL, compat_timer_settime
returns EFAULT.  Add a check to compat_timer_settime to return EINVAL
if *new is NULL.
parent 4e3acbea
......@@ -441,6 +441,9 @@ long compat_timer_settime(timer_t timer_id, int flags,
long err;
mm_segment_t oldfs;
struct itimerspec newts, oldts;
if (!new)
return -EINVAL;
if (get_compat_itimerspec(&newts, new))
return -EFAULT;
oldfs = get_fs();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment