Skip to content

Commit d2520a4

Browse files
kwatersdtor
authored andcommitted
Input: joydev - fix JSIOCSAXMAP ioctl
Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to event axis in addition to abspam. This fixes a regression introduced by 999b874. Signed-off-by: Kenneth Waters <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 38e7afe commit d2520a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/input/joydev.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ static int joydev_handle_JSIOCSAXMAP(struct joydev *joydev,
483483

484484
memcpy(joydev->abspam, abspam, len);
485485

486+
for (i = 0; i < joydev->nabs; i++)
487+
joydev->absmap[joydev->abspam[i]] = i;
488+
486489
out:
487490
kfree(abspam);
488491
return retval;

0 commit comments

Comments
 (0)