Message ID | 20180723201748.25573-51-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C60B191E for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:01:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B538328396 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:01:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A849D2849D; Mon, 23 Jul 2018 21:01:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D66328396 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:01:57 +0000 (UTC) Received: from localhost ([::1]:36602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhhxs-0005A8-EA for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 17:01:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJb-0002oB-CR for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:20:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJZ-0004cj-Vf for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:20:18 -0400 Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]:38987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJZ-0004br-Fs; Mon, 23 Jul 2018 16:20:17 -0400 Received: by mail-oi0-x242.google.com with SMTP id d189-v6so3481800oib.6; Mon, 23 Jul 2018 13:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ULEYDd03Iqz//9xbBei+cgWESGqVvyhuWWzmfuiHCVU=; b=dij2mt0lfJsXeZm6c7aUcTHNjYJNFcZjcgCln+hlXkDJcNenggb6HVJSdoO03eoD/e GbJ6+YtDQkrD0tuz2VnFT9zSp8Nc685hkLIGevIzeW7eH2sQ3S9Wsp4ShXrzbHKSHQJr OIcWM2sVjEcJilPoJeYmRIsBE/GtrQA3hSXRU+V3yFWm2QeVc6y1aAlYe8S317hQXhxv bShADbrlJuNP5ShYB/TFFeukiPyUrN45dY3lVjcw2HLG4DQJ9dBCIUYK0nDJ7ipFqWyt CAVTbtjwHjmOExSvsqMvNE4nwFb20SDEVc/Qt7KZOkex8ks8lQ9uzhZ5D8lo8m9ymAMM QOog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ULEYDd03Iqz//9xbBei+cgWESGqVvyhuWWzmfuiHCVU=; b=LUA8UnL93HA9eJCMh6LjmOtOOfxSAtmnFf32e5Gd9tAzy1sN4za4cy4VlcWsFfLiKr A+Gty6neCKLv99KYk4Hht2GuuZUkH9idkpS4NIbC/hyHej4fqJQ3cqik43TwuXghi8RJ PFQjW5eS7KCamsZ53CmeNE/8eLTJ2kslm5A8IIWFYX7g6Ytos/ReSl2nB4Z5XrZ5Gxnv vxk3jPlm8g60iHecfEiJjdzbq2n/dGrnVIuRlFWJHXWcwCHQlnYbl0t/u+1tEt4+uMS3 anrXiCzwBJXYWmXmnC4dbtA0vGalxBtpFCyRbZEb/6fFgowQXc/jm/nAOCVX8Go0lc1p Bpnw== X-Gm-Message-State: AOUpUlFyiouQPUAYWylYpavXoBOPuXWCI/dRNtZ1J1nBPya9yuUu/xaN +1lnQto7PH/wfPITPMUckao4OjHe6ok= X-Google-Smtp-Source: AAOMgpfHZPBTDCqtQJffJ17MnanMlwUX0P1wWEsa2zUuJzzdHfGkdkV3Wgq50w0ZkxHlFhA2sFrzvg== X-Received: by 2002:aca:4cd2:: with SMTP id z201-v6mr314896oia.318.1532377216265; Mon, 23 Jul 2018 13:20:16 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id 10-v6sm6887109oip.29.2018.07.23.13.20.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:20:15 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:16:59 -0500 Message-Id: <20180723201748.25573-51-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::242 Subject: [Qemu-devel] [PATCH 50/99] usb: correctly handle Zero Length Packets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Gerd Hoffmann <kraxel@redhat.com>, qemu-stable@nongnu.org, =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 65a9196c1a..58e8f7f5bd 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -795,7 +795,7 @@ static void usbredir_handle_bulk_data(USBRedirDevice *dev, USBPacket *p, usbredirparser_peer_has_cap(dev->parser, usb_redir_cap_32bits_bulk_length)); - if (ep & USB_DIR_IN) { + if (ep & USB_DIR_IN || size == 0) { usbredirparser_send_bulk_packet(dev->parser, p->id, &bulk_packet, NULL, 0); } else {