Received: by 10.213.65.68 with SMTP id h4csp466353imn; Fri, 16 Mar 2018 08:36:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELscnzvzVkyxzxaDkGDI/6XvH9jaJG8+VbP0Rmf5nIUCtNCyKVPlQuHHV7r8uwiceupqjBg6 X-Received: by 10.99.0.9 with SMTP id 9mr1840156pga.426.1521214571256; Fri, 16 Mar 2018 08:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214571; cv=none; d=google.com; s=arc-20160816; b=TlNPvT6dQgyYNwA7QcGYJhu6zqTXQKszqKPg3kUwjI+h7ZM/2UdtH18AVg4OJtzlJd QupyIwfp90yq19KwLGfJjR3uFGdWH9MqqX7k+r/VgGIGG2lvB10mw8iscoLo/TnDqokl EY1k2KCdKz9TZ6LWvuNUaPQIFjitcR9lNj3xX5/cuJXaRT0uEkICb905F49m6eny/Z46 GXM7EoDcbdr8Se40bd2F1A4VlwINFLFrO8o/K4Kn9vdFuICWqyT7g3LFy8ShCOAYHr09 H9+gUycZBYtv5kJNOoa0PsPiUQAKIAb8cK92QbpsVeaw4AQ9Uio64EM5AmjHlDmuSgw/ ETdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ick8qStxivkJAYCW2JXxJ1hG0bj5vEuJ57UZ8O+pr80=; b=rWjiTj8Rtfs6BEIA0mUgbqgiPK8+nILWksW5qzj1OpDq04SRWtwBkx00HqFTcDl8kf AF6K+eC57ozAqhTSGUtkfKYT9pQ0W7xLWaTPk5C+KgIpgW/D2fOqCT0iZLLZmGK57tx6 O2BsNsXZPC7Xv1GJvqlvlC47llLdJElbw09ftyBhO/STTNDMJU958492LGuiql/EkorJ TdeDZ2KD+x6Ep4tF5ji9bbmDMf+4pqq2X8L/gU2ZvaH5LU9wOof76+4ZZ/0FBaAyKxMB 3PReQefw8DygVaI0b3rS3orx5KuASUH7JwPe2Dl2Xzs0B/PUSNwQuIYxIMdeLGm6fdN1 oZOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si5090906pgt.823.2018.03.16.08.35.56; Fri, 16 Mar 2018 08:36:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933714AbeCPPdN (ORCPT + 99 others); Fri, 16 Mar 2018 11:33:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38290 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933698AbeCPPdJ (ORCPT ); Fri, 16 Mar 2018 11:33:09 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7105A11EE; Fri, 16 Mar 2018 15:33:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oliver Neukum , stable@kernel.org, Hans de Goede Subject: [PATCH 4.9 75/86] uas: fix comparison for error code Date: Fri, 16 Mar 2018 16:23:38 +0100 Message-Id: <20180316152322.402914504@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Oliver Neukum commit 9a513c905bb95bef79d96feb08621c1ec8d8c4bb upstream. A typo broke the comparison. Fixes: cbeef22fd611 ("usb: uas: unconditionally bring back host after reset") Signed-off-by: Oliver Neukum CC: stable@kernel.org Acked-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- drivers/usb/storage/uas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -1076,7 +1076,7 @@ static int uas_post_reset(struct usb_int return 0; err = uas_configure_endpoints(devinfo); - if (err && err != ENODEV) + if (err && err != -ENODEV) shost_printk(KERN_ERR, shost, "%s: alloc streams error %d after reset", __func__, err);