Received: by 10.213.65.68 with SMTP id h4csp509305imn; Fri, 16 Mar 2018 09:55:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+ctR+Wewn/b07wZH9VDdDbN0X2lGZ7nDgZVevJKpHrvSKkDjOnJztnu7Wjh3GwnpzbOOW X-Received: by 10.98.10.219 with SMTP id 88mr2137329pfk.202.1521219346365; Fri, 16 Mar 2018 09:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219346; cv=none; d=google.com; s=arc-20160816; b=PtvpmI888Zb4vVOflmgLAlzcyJonQVDcvYeR8ISHAPGhYrq/jMqn8E6obSm6hE69If +pv/tXYIekc/x6TsuigT+YHCkS0LeoLPRUNcBw28EN7L/RD97PCMchflYsj/+eJP+wu4 9h8vqU7BRMwH/LlaPDQUDcui2r73zsFkL3YSzr/hccdSAz+oNbBDSf3ncR6g8yLZOu4T /zO3DJ0N/JxbW0IJt3ZBzWNh+Bu2Dhk2AZb/IdGF98CuJjSBpXNBlnA2dDv3vQxFn6a6 mGNI7wdzN4VNUz9jt8pyXvtU0xpWIuKntGH5pQ6v2U3oHeLv639DgpaJcYrVV0MPSisM nscA== 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=NIHdpCuGGhg6fKIOK1579xl2zD0hC61i02LMS7LSa4w=; b=rHc0WTqEtZ2/tqyV6AymOYrPhoj7l24o49ShAoD+7YDtFTVhrxKRtdl+zjq+5OCpY7 W3RKnYg6ajDBWoHlKd0TQFcmIuyCOYncaaqZIuPI8cKMjhCd5XTk8erUDhtSGfefV09z +5dwao2JpoFhLDTeJjF5oYlzcOeRAbpmfXSuHCOZCefPt12o3SKs1V/49VgHuem9LhTy LPg28EBrBqfFO3KnDOjPvyjrnyPRzK9TajB9Pchu4iinHQ9S5o8B1Q+2ivPgGIC7eSDR sRp01+R8U3NX4wBF3hf6M2bHbJmr4LG3L0eOzYuSMkGxQ12jonpgJb2UP8j2nPwLOy0K 9dig== 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 a100-v6si6497171pli.483.2018.03.16.09.55.32; Fri, 16 Mar 2018 09:55:46 -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 S933922AbeCPPeS (ORCPT + 99 others); Fri, 16 Mar 2018 11:34:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39320 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890AbeCPPeO (ORCPT ); Fri, 16 Mar 2018 11:34:14 -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 E938BCA4; Fri, 16 Mar 2018 15:34:13 +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.14 013/109] uas: fix comparison for error code Date: Fri, 16 Mar 2018 16:22:42 +0100 Message-Id: <20180316152330.645422547@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@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.14-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);