From patchwork Fri Jul 6 10:09:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 1164631 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 79FFF40135 for ; Fri, 6 Jul 2012 10:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756771Ab2GFKJF (ORCPT ); Fri, 6 Jul 2012 06:09:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58733 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756730Ab2GFKJB (ORCPT ); Fri, 6 Jul 2012 06:09:01 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q66A8x0A001915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jul 2012 06:08:59 -0400 Received: from shalem.localdomain.com (vpn1-4-112.ams2.redhat.com [10.36.4.112]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q66A8uCl001768; Fri, 6 Jul 2012 06:08:58 -0400 From: Hans de Goede To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Hans de Goede Subject: [PATCH 1/2] usb-redir: Correctly handle the usb_redir_babble usbredir status Date: Fri, 6 Jul 2012 12:09:32 +0200 Message-Id: <1341569373-9478-2-git-send-email-hdegoede@redhat.com> In-Reply-To: <1341569373-9478-1-git-send-email-hdegoede@redhat.com> References: <1341569373-9478-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Hans de Goede --- hw/usb/redirect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 5f55d78..c6358c0 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -1058,6 +1058,8 @@ static int usbredir_handle_status(USBRedirDevice *dev, case usb_redir_inval: WARNING("got invalid param error from usb-host?\n"); return USB_RET_NAK; + case usb_redir_babble: + return USB_RET_BABBLE; case usb_redir_ioerror: case usb_redir_timeout: default: