Commit 9e8626bd authored by Richard Henderson's avatar Richard Henderson Committed by Richard Henderson

Avoid oops on systems that set atkbd_reset.

parent 820447aa
...@@ -244,8 +244,9 @@ static int atkbd_command(struct atkbd *atkbd, unsigned char *param, int command) ...@@ -244,8 +244,9 @@ static int atkbd_command(struct atkbd *atkbd, unsigned char *param, int command)
while (atkbd->cmdcnt && timeout--) udelay(10); while (atkbd->cmdcnt && timeout--) udelay(10);
for (i = 0; i < receive; i++) if (param)
param[i] = atkbd->cmdbuf[(receive - 1) - i]; for (i = 0; i < receive; i++)
param[i] = atkbd->cmdbuf[(receive - 1) - i];
if (atkbd->cmdcnt) if (atkbd->cmdcnt)
return (atkbd->cmdcnt = 0) - 1; return (atkbd->cmdcnt = 0) - 1;
......
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