Release the ADB keyboard mutex when handling the power button
press/release. Found by WITNESS. Approved by: nwhitehorn (mentor) MFC after: 3 days
This commit is contained in:
parent
0bfbe5f660
commit
ff1b355c91
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237480
@ -426,8 +426,10 @@ adb_kbd_receive_packet(device_t dev, u_char status,
|
||||
/* 0x7f is always the power button */
|
||||
if (data[0] == 0x7f && devctl_process_running()) {
|
||||
devctl_notify("PMU", "Button", "pressed", NULL);
|
||||
mtx_unlock(&sc->sc_mutex);
|
||||
return (0);
|
||||
} else if (data[0] == 0xff) {
|
||||
mtx_unlock(&sc->sc_mutex);
|
||||
return (0); /* Ignore power button release. */
|
||||
}
|
||||
if ((data[0] & 0x7f) == 57 && sc->buffers < 7) {
|
||||
|
Loading…
Reference in New Issue
Block a user