aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index cd323254ca6f..fc5afbd78625 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -686,6 +686,10 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
686 sizeof(struct input_absinfo)))) 686 sizeof(struct input_absinfo))))
687 return -EFAULT; 687 return -EFAULT;
688 688
689 /* We can't change number of reserved MT slots */
690 if (t == ABS_MT_SLOT)
691 return -EINVAL;
692
689 /* 693 /*
690 * Take event lock to ensure that we are not 694 * Take event lock to ensure that we are not
691 * changing device parameters in the middle 695 * changing device parameters in the middle