synaptics: Correctly handle critical section during interrupt resubmit

We re-aquire the critical section at the start of the callback, however,
it needs to be dropped again (or not taken) if the interrupt transfer is
resubmitted.
This commit is contained in:
Benjamin Berg
2022-05-17 20:20:52 +02:00
parent 1f925fef7c
commit bfbe24b172

View File

@@ -225,6 +225,7 @@ cmd_interrupt_cb (FpiUsbTransfer *transfer,
}
else
{
fpi_device_critical_leave (device);
fpi_usb_transfer_submit (fpi_usb_transfer_ref (transfer),
0,
NULL,