Skip to content

Commit

Permalink
Input: joydev - fix JSIOCSAXMAP ioctl
Browse files Browse the repository at this point in the history
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 <kwwaters@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Kenneth Waters authored and Dmitry Torokhov committed Sep 21, 2010
1 parent 38e7afe commit d2520a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/input/joydev.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ static int joydev_handle_JSIOCSAXMAP(struct joydev *joydev,

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

for (i = 0; i < joydev->nabs; i++)
joydev->absmap[joydev->abspam[i]] = i;

out:
kfree(abspam);
return retval;
Expand Down

0 comments on commit d2520a4

Please sign in to comment.