Message ID | 20200526183918.873869296@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=+fRt=7I=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D951C433E0 for <stable@archiver.kernel.org>; Tue, 26 May 2020 18:57:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CE542086A for <stable@archiver.kernel.org>; Tue, 26 May 2020 18:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590519478; bh=osn5tQKATtrvLfOBUR18uCnujF4TcwMDgvASyZLXTM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=jsgEToAB1N3N7LPspmz2rZCVGWJGM8RHHSzJzxmKz6e3Y3b5aAoZ/ZJpEmphj4Jy0 K9BtyQLdxI/5MGsrFOkVwqr9Oy/SUZeS6Wl+pZc0e0b4pDqPnQMO9BrK9z/4/1XSc4 wXH8RpYX66vBwNuE+9X7hXxxiPFOhYYUW2o1KiXE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390215AbgEZS54 (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 26 May 2020 14:57:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390178AbgEZS5x (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 26 May 2020 14:57:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A86432086A; Tue, 26 May 2020 18:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590519472; bh=osn5tQKATtrvLfOBUR18uCnujF4TcwMDgvASyZLXTM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rAxk50T+E+L9+qjpErNJnmx7uPW/Gjl5NpZTu1CNX8HlacMi4fLHzFyvT7cflsJez 9xP01tksvZT7rlWjpzh+9ejAEtwdgCMCh3iicgUbN0oue1VpzBYWjkjI6FudQXHeOr p65zh+QYn4X0QcvZSuDRz7EXsh1cawiRsvu6HfdY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Alan Stern <stern@rowland.harvard.edu>, Sasha Levin <sashal@kernel.org>, syzbot+db339689b2101f6f6071@syzkaller.appspotmail.com Subject: [PATCH 4.9 17/64] USB: core: Fix misleading driver bug report Date: Tue, 26 May 2020 20:52:46 +0200 Message-Id: <20200526183918.873869296@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526183913.064413230@linuxfoundation.org> References: <20200526183913.064413230@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 2e541a029657..e33d23c2f6ea 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -1081,11 +1081,11 @@ void usb_disable_endpoint(struct usb_device *dev, unsigned int epaddr, if (usb_endpoint_out(epaddr)) { ep = dev->ep_out[epnum]; - if (reset_hardware) + if (reset_hardware && epnum != 0) dev->ep_out[epnum] = NULL; } else { ep = dev->ep_in[epnum]; - if (reset_hardware) + if (reset_hardware && epnum != 0) dev->ep_in[epnum] = NULL; } if (ep) {