Received: by 10.213.65.68 with SMTP id h4csp527361imn; Fri, 16 Mar 2018 10:26:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELvofZK/0G0i2YHYVBNvyBsK/ZkrdCSMFZtdqxBDWkE5c81jSD4hu0vd2uThzip8FFamXLMG X-Received: by 2002:a17:902:aa8e:: with SMTP id d14-v6mr2991766plr.318.1521221211081; Fri, 16 Mar 2018 10:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521221211; cv=none; d=google.com; s=arc-20160816; b=FMwQOvXXXUTRx7K3pOuh6KGcCJtQ/UD2oIY8XUYOVn1YprEzuAKdlO13/4aL13131K lSA1cq0JGwnSP7NRwJBFsxnRnYA2k0DrTIp3pdxeqS9jyakAptlSRkBmSG2epbgn0hG7 dy9HPakr/V4WeuPlgQYsidVle5/mXDv8cZ6zcrP1/Opyui184lT3VZ7rRsj9nJ9cDrTa 0nOmzOWwoFqa+F73H1unX/DIaIsFBx4prac2JXQ/N2JQlJHVe38xbUPwZ0eTsqvUqQZA eaqzIE10c2sUzAmzq13heOqpGcjfq0AtlEkGx/UCwL+noIxRztP8qjQVqGBKLPslIXUH 49YQ== 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=Pg4WZBqVnFdQ+o7/USlwZIzo9yI9FsTFxhJO0jCWdMo=; b=lmNLmhOF6/y1axJSTuRM4xqDg9LefTIe7r6XtprihCeV20bgoDRMGCIngCqEVllrcm zomhbWn7ngsGN4+1XniHP6nCj4hApsg4AqYRAoCdmOYLkJpp/oxuvuCGccfxIn0K8X4a u+wksms0hLOtDdbcUNmLIAkksI8OTzbKZnoFB2Gn1jnrr9TUm5XaVum9QUqf/iTURCkD /TpTB/ZsBAZC9gFR4/qWl3eHeb+WeAR/9CLYhruPpwey+X4hkD8KUGWi7o0FZicP+35c D3vLg2bCjTx/KW8CG3OQQznnMYTsi1a6TfqyJdyW1lO4JYjsuGdithtjaOwTg5Vvm4p4 EmBg== 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 d5si5869562pfl.224.2018.03.16.10.26.36; Fri, 16 Mar 2018 10:26:51 -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 S933072AbeCPRZj (ORCPT + 99 others); Fri, 16 Mar 2018 13:25:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35980 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932952AbeCPP26 (ORCPT ); Fri, 16 Mar 2018 11:28:58 -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 6CE0CC8A; Fri, 16 Mar 2018 15:28:57 +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.4 54/63] uas: fix comparison for error code Date: Fri, 16 Mar 2018 16:23:26 +0100 Message-Id: <20180316152305.882197844@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@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.4-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 @@ -1052,7 +1052,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);