On Thu, Jun 23, 2011 at 11:16:48AM +0200, Alon Levy wrote:
> ---
>  server/smartcard.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/server/smartcard.c b/server/smartcard.c
> index f948e5b..7830c9a 100644
> --- a/server/smartcard.c
> +++ b/server/smartcard.c
> @@ -538,6 +538,10 @@ void smartcard_channel_init(void)
>  {
>      Channel *channel;
>  
> +    /* don't register the channel if no hardware registered */
> +    if (g_smartcard_readers.num == 0) {
> +        return;
> +    }

This wouldn't work if usb-ccid qemu devices could be hotplugged during qemu's
lifetime, but according to an IRC discussion, this is currently not
possible in QEMU. So ack from me.

Christophe

Attachment: pgpCHy2sK4IYx.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to