projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c9a9cf
)
Input: avoid negative input device numbers
author
Richard Leitner
<richard.leitner@skidata.com>
Wed, 8 Oct 2014 21:24:15 +0000
(14:24 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 9 Oct 2014 22:27:24 +0000
(15:27 -0700)
Fix the format string for input device name generation to avoid negative
device numbers when the id exceeds the maximum signed integer value.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c
patch
|
blob
|
history
diff --git
a/drivers/input/input.c
b/drivers/input/input.c
index
d2e06cc
..
0f175f5
100644
(file)
--- a/
drivers/input/input.c
+++ b/
drivers/input/input.c
@@
-1789,7
+1789,7
@@
struct input_dev *input_allocate_device(void)
INIT_LIST_HEAD(&dev->h_list);
INIT_LIST_HEAD(&dev->node);
- dev_set_name(&dev->dev, "input%l
d
",
+ dev_set_name(&dev->dev, "input%l
u
",
(unsigned long) atomic_inc_return(&input_no) - 1);
__module_get(THIS_MODULE);