Home GnuPG
Diffusion GnuPG 519c01a0fd6c

scd: Fix card removal/reset on multiple contexts.
519c01a0fd6cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Fix card removal/reset on multiple contexts.

* scd/app.c (application_notify_card_reset): Add message for debug.
*scd/command.c (update_card_removed): Call release_application and set
SLOT -1 here.
(struct server_local_s): Remove app_ctx_marked_for_release.
(do_reset): Don't mark release but call release_application here.
(open_card): Remove app_ctx_marked_for_release handling.
(update_reader_status_file): Don't set SLOT here, so that it can be
released the APP by application_notify_card_reset in
update_card_removed.

Backport of master commit: 1598a4476466822e7e9c757ac471089d3db4b545

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 20 2016, 4:35 AM
Parents
rG3b3386a3fd97: scd: Fix race conditions for release_application.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG519c01a0fd6c: scd: Fix card removal/reset on multiple contexts. (authored by NIIBE Yutaka <gniibe@fsij.org>).Nov 29 2016, 9:39 AM