Skip to content

Commit

Permalink
Input: grip - fix crash when accessing device
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Jan 30, 2006
1 parent ffc6b52 commit 3575c34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/input/joystick/grip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 3575c34

Please sign in to comment.