Commit 3575c341 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: grip - fix crash when accessing device

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent ffc6b529
......@@ -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]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment