projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc6b52
)
Input: grip - fix crash when accessing device
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 30 Jan 2006 02:51:16 +0000
(21:51 -0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 30 Jan 2006 02:51:16 +0000
(21:51 -0500)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/grip.c
patch
|
blob
|
history
diff --git
a/drivers/input/joystick/grip.c
b/drivers/input/joystick/grip.c
index a936e7aedb103552e617010d7260a74664c6ff29..330c6717c149724ada1bb407006c87cdb3e38b7b 100644
(file)
--- a/
drivers/input/joystick/grip.c
+++ b/
drivers/input/joystick/grip.c
@@
-192,6
+192,9
@@
static void grip_poll(struct gameport *gameport)
for (i = 0; i < 2; i++) {
dev = grip->dev[i];
+ if (!dev)
+ continue;
+
grip->reads++;
switch (grip->mode[i]) {