Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0be618d authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: evdev - allow querying EV_SW bits from compat_ioctl



Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e2f2e58e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -565,6 +565,7 @@ static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon
						case EV_LED: bits = dev->ledbit; max = LED_MAX; break;
						case EV_SND: bits = dev->sndbit; max = SND_MAX; break;
						case EV_FF:  bits = dev->ffbit;  max = FF_MAX;  break;
						case EV_SW:  bits = dev->swbit;  max = SW_MAX;  break;
						default: return -EINVAL;
					}
					bit_to_user(bits, max);