]> git.proxmox.com Git - mirror_qemu.git/commit
usb-ccid: better bulk_out error handling
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 16 Feb 2017 13:13:37 +0000 (14:13 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Feb 2017 07:11:43 +0000 (08:11 +0100)
commit0aeebc73b7976bae5cb7e9768e3d9a0fd9d634e8
tree63ff4167640e74086ee256bb2008edfac96beb73
parent558ff1b6efcebd7f919bae3e36b97fa6f9139f42
usb-ccid: better bulk_out error handling

Add err goto label where we can jump to from all error conditions.
STALL request on all errors.  Reset position on all errors.

Normal request processing is not in a else branch any more, so this code
is reintended, there are no code changes in that part of the code
though.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1487250819-23764-2-git-send-email-kraxel@redhat.com
hw/usb/dev-smartcard-reader.c