From patchwork Sat Mar 31 15:14:23 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: 149837 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6A8C5B6FCA for ; Sun, 1 Apr 2012 02:12:42 +1100 (EST) Received: from localhost ([::1]:39532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDzym-00051f-SY for incoming@patchwork.ozlabs.org; Sat, 31 Mar 2012 11:12:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDzyY-0004wq-Sm for qemu-devel@nongnu.org; Sat, 31 Mar 2012 11:12:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDzyX-0001FS-AB for qemu-devel@nongnu.org; Sat, 31 Mar 2012 11:12:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDzyX-0001Eg-28 for qemu-devel@nongnu.org; Sat, 31 Mar 2012 11:12:21 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2VFCJsN020013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 31 Mar 2012 11:12:19 -0400 Received: from shalem.localdomain.com (vpn1-7-110.ams2.redhat.com [10.36.7.110]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2VFCFOZ010172; Sat, 31 Mar 2012 11:12:18 -0400 From: Hans de Goede To: Gerd Hoffmann Date: Sat, 31 Mar 2012 17:14:23 +0200 Message-Id: <1333206863-11425-3-git-send-email-hdegoede@redhat.com> In-Reply-To: <1333206863-11425-1-git-send-email-hdegoede@redhat.com> References: <1333206863-11425-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Hans de Goede , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 3/3] usb-redir: Not finding an async urb id is not an error X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We clear our pending async urb list on device disconnect and we may still receive "packet complete" packets from our peer after this, which will then refer to packet ids no longer in our list. Signed-off-by: Hans de Goede --- hw/usb/redirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 11d3b2b..b872626 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -276,7 +276,7 @@ static AsyncURB *async_find(USBRedirDevice *dev, uint32_t packet_id) return aurb; } } - ERROR("could not find async urb for packet_id %u\n", packet_id); + DPRINTF("could not find async urb for packet_id %u\n", packet_id); return NULL; }