projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e7afe
)
Input: joydev - fix JSIOCSAXMAP ioctl
author
Kenneth Waters
<kwwaters@gmail.com>
Tue, 21 Sep 2010 07:58:23 +0000
(
00:58
-0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 21 Sep 2010 07:59:43 +0000
(
00:59
-0700)
Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to
event axis in addition to abspam. This fixes a regression introduced
by
999b874f
.
Signed-off-by: Kenneth Waters <kwwaters@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joydev.c
patch
|
blob
|
history
diff --git
a/drivers/input/joydev.c
b/drivers/input/joydev.c
index
d85bd8a
..
22239e9
100644
(file)
--- a/
drivers/input/joydev.c
+++ b/
drivers/input/joydev.c
@@
-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;