summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-09-07 11:53:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-01 07:30:36 +0200
commite94cda6551d4716b17353fc458baa9e85ddea9ff (patch)
tree5343bd893735c306301cdb4869d4cb828fab88de /tools/lib/python
parent79e730c92c16252278ed181cf9d343f53ecdc128 (diff)
staging: greybus: uart: fix racy TIOCMIWAIT implementation
Check the wakeup condition after adding the task to the waitqueue and updating the task state to avoid missing a racing modem status update or disconnect. Store the old icount on entry and do not update it in the completion handler to avoid missing events or reporting spurious ones (due to modem status changes before TIOCMIWAIT was called). Fixes: e68453ed28c5 ("greybus: uart-gb: now builds, more framework added") Cc: stable@kernel.org # 4.9 Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260907095305.130762-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions