mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
Input: joydev - fix JSIOCSAXMAP ioctl
commitd2520a426dupstream. Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to event axis in addition to abspam. This fixes a regression introduced by999b874f. Signed-off-by: Kenneth Waters <kwwaters@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
300ec625eb
commit
0bed849274
@@ -481,6 +481,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;
|
||||
|
||||
Reference in New Issue
Block a user