Message ID | 20200526183910.004128091@linuxfoundation.org |
---|---|
State | New |
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,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 6201EC433E1 for <stable@archiver.kernel.org>; Tue, 26 May 2020 18:56:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 420D12084C for <stable@archiver.kernel.org>; Tue, 26 May 2020 18:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590519396; bh=yxPt5RtTF67o4Bq8gMPe8OYSr0m+EJyUcIQGpD7elm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qKRoXFqQuUtVOSpInDZ0o5lqVfWyMY1p3CqbBrwjUIzlLt93bSNhb9jqviAKKZu1w p7MJ0UEz9my2fjQcsNf4nytwQA6hesNNY42VIKxWXUoHi3DDSgHF/MwZd470Sf178k be2qYL0AZ0RSfcwJTDkLy/YZtMNRMul/dmPgQVlY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389873AbgEZS4f (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 26 May 2020 14:56:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:49426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389868AbgEZS4d (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 26 May 2020 14:56:33 -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 D7C0521501; Tue, 26 May 2020 18:56:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590519393; bh=yxPt5RtTF67o4Bq8gMPe8OYSr0m+EJyUcIQGpD7elm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uZECACFXyMpzGM+1eb06Xtzy6bB1NPb+oaPAohfFAVUsyUdm9IolS4qr1bCgikSEb wTQJkUIWcGJ0ZLT9NK7SXeJPt6bjRiC9HYNDcwLdtuz1FnIPOlqEAJC529eSphvThG y6pSczg2himKXOfvxFXi/+8VhaFeFy6Guo0Dkv3Q= 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.4 10/65] USB: core: Fix misleading driver bug report Date: Tue, 26 May 2020 20:52:29 +0200 Message-Id: <20200526183910.004128091@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526183905.988782958@linuxfoundation.org> References: <20200526183905.988782958@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 747343c61398..f083ecfddd1b 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -1080,11 +1080,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) {