mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
Input: grip - fix crash when accessing device
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
ffc6b529e8
commit
3575c34100
1 changed files with 3 additions and 0 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue