(re)implement setkeycode/getkeycode/kd_mksound/kbd_setrate via the input core
This bit looks wrong to me:
+ for (handle = kbd_handler.handle; handle; handle = handle->hnext)
+ if (handle->dev->keycodesize) break;
+
+ if (!handle->dev->keycodesize)
+ return -ENODEV;
if we reach termination for the loop without finding a keycodesize, handle will be NULL, so you'd get an oops. Just do:
+ if (!handle)
+ return -ENODEV
(sorry about the formatting, i'm reading l-k via uwsg's web archive).
Signature · 1 line
Revolutions do not require corporate support.