ftrace: iter ctrl fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Ingo Molnar 2008-05-12 21:20:53 +02:00 committed by Thomas Gleixner
parent d9af56fbd8
commit 442e544ce5

View file

@ -1920,6 +1920,11 @@ tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf,
break;
}
}
/*
* If no option could be set, return an error:
*/
if (!trace_options[i])
return -EINVAL;
filp->f_pos += cnt;