提交 3575c341 编写于 作者: D Dmitry Torokhov

Input: grip - fix crash when accessing device

Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册