commit | 3575c3410071dc778d2d9c6002493a5dce73ec0b | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dtor_core@ameritech.net> | Sun Jan 29 21:51:16 2006 -0500 |
committer | Dmitry Torokhov <dtor_core@ameritech.net> | Sun Jan 29 21:51:16 2006 -0500 |
tree | 69c01a4615018ef820df06001751e16ad591d50e | |
parent | ffc6b529e8c46c73827008c7406f43482d71beed [diff] [blame] |
Input: grip - fix crash when accessing device Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/input/joystick/grip.c b/drivers/input/joystick/grip.c index a936e7a..330c671 100644 --- a/drivers/input/joystick/grip.c +++ b/drivers/input/joystick/grip.c
@@ -192,6 +192,9 @@ for (i = 0; i < 2; i++) { dev = grip->dev[i]; + if (!dev) + continue; + grip->reads++; switch (grip->mode[i]) {