Commit 8b313f9f authored by Philippe Gerum's avatar Philippe Gerum
Browse files

drivers/evl: latmus: detect wrong CPU spec



The CPU the sampler runs on must be part of the out-of-band set.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 472ad7f9
......@@ -901,6 +901,10 @@ static long latmus_ioctl(struct file *filp, unsigned int cmd,
setup_data.priority > EVL_FIFO_MAX_PRIO)
return -EINVAL;
if (setup_data.cpu >= num_possible_cpus() ||
!is_evl_cpu(setup_data.cpu))
return -EINVAL;
/* Clear previous runner. */
runner = ls->runner;
if (runner) {
......
Supports Markdown
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