~registry/libfprint/master

Viewing all changes in revision 1085.

  • Committer: Benjamin Berg
  • Author(s): Benjamin Berg
  • Date: 2020-09-14 11:23:38 UTC
  • Revision ID: git-v1:bcce8876e2931b55874b8df01f32570f9d18fcfb
aes3k: Fix cancellation logic of aes3k driver

The change_state function is called synchronously from the
image_captured callback. This means that deactivation of the device
happens during the img_cb function, causing the USB transfer to be
re-registered even though the device is already deactivating.

There are various ways to fix this, but it makes sense to directly bind
the cancellation to the deactivation. So create a cancellable that we
cancel at deactivation time, and make sure we always deactivate by going
through cancellation.

closes: #306

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: