Skip to content

Commit f9ce6eb

Browse files
zonquedtor
authored andcommitted
Input: evdev - fix EVIOCSABS regression
448cd16 ("Input: evdev - rearrange ioctl handling") broke EVIOCSABS by checking for the wrong direction bit. Signed-off-by: Daniel Mack <[email protected]> Reported-by: Sven Neumann <[email protected]> Tested-by: Sven Neumann <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 0a74a1d commit f9ce6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/evdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
683683
}
684684
}
685685

686-
if (_IOC_DIR(cmd) == _IOC_READ) {
686+
if (_IOC_DIR(cmd) == _IOC_WRITE) {
687687

688688
if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) {
689689

0 commit comments

Comments
 (0)