Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2235815imm; Thu, 7 Jun 2018 07:30:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKYuf01DTfqZw1Yf+y5FezLah0TfEotMrFZlKS5C4PFVr8WbeXgf9eEz4Ba2dpmqKFPTWSK X-Received: by 2002:a62:9d82:: with SMTP id a2-v6mr2013378pfk.223.1528381803636; Thu, 07 Jun 2018 07:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528381803; cv=none; d=google.com; s=arc-20160816; b=SocXFxNNhkMTVtbSe+GUfCKBXjO7pBm11VbZ9rDrn6Z7n4hNwdk1gItMrDsS3ifwO0 Xn45vtESctYv5mTp8xXC2W0jOiIiCGVQg4GKD/hUWrRYM0FgWbHp8A4oGehcEfbp3zVh hwDo+XuoxZuOwXH8KsIsXSj2dCDhXyszq6OyKK12hO4o4fSXmf+ly/qDJVNPp3UhEMOL lBMLm4e+UMllLfi6Cm26LXiOQPCHyCTdUudlKMQHiiozTyeiD/LdlBxZJgxUDUbB7gWT dg3X/Tvy2/hhSththwyVIA1xNjEt5jDsixCooQFXeqz6xxaewXUFO6pJiopSVV7CHHWn XxAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=nVaGt0yItuGaT2iSaF8YHYYZsiW8a3j44aodzhYDAIY=; b=wnxzf/YrYkrkQvSaDaOE4nTYZGsuDLS626zJiOlMYtRS7qK8EVOOcWC/TMWjiuKAFf yVr0DFk/a/tYcgW2eeDcCmFW4vQTn9aYsxJW2MtiAcSzzAdfM29NLLHc2AVhsWpoLA9O KF2xUx9VpHgH4w0zZs1DtkRkFW+ZZexvAP/LBkM1pxRjSTXRZhYd+mTtBZd/TxN1aXDX 4FRyTZdwu3ZlbzmLqycCqKMAHL7xshbi0W4kFQjwClpyE9SVWrBlkksX+uX9zy5u+Rwz GECUp/cbMSii1d26cdNn+LWVEkP2vIkz/wLi5BBEUvEClID4WP8yrkF2IubL2uSllAVk 76cA== 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 q1-v6si20775066pgs.441.2018.06.07.07.29.49; Thu, 07 Jun 2018 07:30:03 -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 S933507AbeFGO0B (ORCPT + 99 others); Thu, 7 Jun 2018 10:26:01 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40151 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933420AbeFGOZ6 (ORCPT ); Thu, 7 Jun 2018 10:25:58 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbT-0005Zp-ID; Thu, 07 Jun 2018 15:09:28 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvbB-0003Bm-Mw; Thu, 07 Jun 2018 15:09:09 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Oliver Neukum" , "Greg Kroah-Hartman" , "Hans de Goede" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 326/410] uas: fix comparison for error code In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 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 Acked-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- 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 @@ -1195,7 +1195,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);