Skip to content
Commit 6a37f325 authored by Peter van der Perk's avatar Peter van der Perk Committed by Benjamin Cabé
Browse files

drivers: input: sbus: Fix race and infinite loop



Under certain conditions report_lock could already be used by the irq
before it was initialized, now we ensure we enable irq after report_lock
is initialized.

Furthermore in some conditions data->xfer_bytes could be equal
SBUS_FRAME_LEN resulting in a infinite loop doing zero reads when
fifo is still holding new bytes

Signed-off-by: default avatarPeter van der Perk <peter.vanderperk@nxp.com>
parent 60d933e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment