Received: by 10.213.65.68 with SMTP id h4csp468914imn; Fri, 16 Mar 2018 08:41:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELuW/QxTn2EqqWVESYcOeqBN5z8Blg5+elkMdgjqf9OAjuTqUnJY/Qa1FfNB7npGXkJQATIB X-Received: by 10.101.101.205 with SMTP id y13mr1776400pgv.265.1521214878061; Fri, 16 Mar 2018 08:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214878; cv=none; d=google.com; s=arc-20160816; b=aidPRdv2rYBxeK3rGbGZ4yf6kdK/4Gt8yBEoELWJ0A+O2YrObhRCqjFomxizEbuwA6 Re0bAk27yTpAzmvT3zE/Pke/Ti1hts+HmX1A5wQV+rkYtWGujOPm1g5x8Nis8K3vPhNf VmwPgQf3vhbxm10ZgapkUYgwrSIo4IlRlPNqZGZUP/Xj292N/GP3NJRvzupKY3294smy RqrZygvMfmxsS+JXgcy+biDFIx2QgQ949Z48kaGtDYgP/q9UOUUOPztKD9Stz4laKe8R WPWRzwpQT8aumpUQl9/3b+fdEV/k0qVjZQMgoSfblKA5mRHMTt28OF/NSMWRwwlblICV FoJg== 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=2FUxA/4xNRsXTH3jEnvWWTofKyOEcDQ+LOM8VdMwfQE=; b=idtuOrPbMu/3dfGMMCK2kWsqPihyvoEDi6Q6VukGDsajwxB1YV8/AMuSk1VVKWnTIo UUFWHSj1X+x26c/dmOLmuNoPWrjwppvWIHpWHOSACc8ptgpxJ2/CFwBGHrqN9KsheWA9 ccwzajRCYaRo5oSN4s/d+E6lmBrfbT+b9aN4cYUPOkc9jmI4C23cKiHqTC/qdX5+xysI agMvlp/p7yCCOgkyp9sfr8rMcMEcR6z9uClr4Oo01GzAis9v1ouVaWqunAc3KpNvIRIZ UZipXcRNj5xIFROM9orTM1kMZKYhyd8QvRqtHgTxZU7otRzKl+2h826y4BNNOVAqdieU SPQw== 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 z7si5046310pgp.660.2018.03.16.08.41.03; Fri, 16 Mar 2018 08:41:18 -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 S1754623AbeCPPjZ (ORCPT + 99 others); Fri, 16 Mar 2018 11:39:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43234 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754613AbeCPPjX (ORCPT ); Fri, 16 Mar 2018 11:39:23 -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 F1B19CDE; Fri, 16 Mar 2018 15:39:22 +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.15 011/128] uas: fix comparison for error code Date: Fri, 16 Mar 2018 16:22:32 +0100 Message-Id: <20180316152336.799882282@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-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);