Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1635310pxu; Sat, 12 Dec 2020 21:24:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJypF77/54YBisLJhnIXrvDfqkL46fFEX146gLmrFE5KpYsx04r6ceaaE5l33KmibbKry64U X-Received: by 2002:aa7:c543:: with SMTP id s3mr19075033edr.88.1607837065930; Sat, 12 Dec 2020 21:24:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607837065; cv=none; d=google.com; s=arc-20160816; b=eqZMJAg39n7MHqujNcRrEZYwsXLqN6LU0jEN+ssU2YK463Bat6T8WiCSIMYJX/umie oetcbGDM+exdtxqiBND3lEyvPKaXGhxffyVzzNkowoXuqUJ6DMTkaNLvolN71MxEago+ HAPTPIiDLCkGjpSSI8suHILyEWHVGj0wrnPtYOctANYq3gzPloWUMZikv4Rlhj2czGd8 Vy35rXwyFNBwHSMHXBTP7LOeWc/7PJFb2v70OS7Q+XEl7QU/n/KGe1w+JFvyer7bv7G+ ZtpCeaT/CAMcxCqgPtDvb18oPvOhyqKppMW7u7yrjf/L9uMduFzcl91/8iR5WDj3mzK+ 7IVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XMB31bx7TnjO8fu21uBatcEAnxI2+9nj5kynTsMju6k=; b=vUskoxRMBxU8D7o4ZdcDdSUAg9/Bv92PPnHp2SRpxjP5BxMXZhNiJo41hAQtEzFKYx sOntGsRcApj+xi1AROwycO5k+d9ozsPaRIfjWRSE169x4d/ivxLr85ZId/crDrTJ1jvV 2L/izksCRf2PdJsQUzg/wuwGFQrZYPDzeRIRGbxioEDsHabBqtipBPuRS4/dS255VKCb bF2f0iZzDoLzBtUPJZDKFniZgZfAXOFgVF0NojGc5/jQsVg/3mvJpW/ckPAU6wTYZsEJ 3M4byoF/blBn4gENruOGk6749r0MsVAH6cP37sLXeuSHYU9pjSAgSz77kc5QVejv6aJj xYLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si7775623edx.538.2020.12.12.21.24.03; Sat, 12 Dec 2020 21:24:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406988AbgLKWhm (ORCPT + 99 others); Fri, 11 Dec 2020 17:37:42 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:42288 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436812AbgLKWg7 (ORCPT ); Fri, 11 Dec 2020 17:36:59 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 408C11C0BC2; Fri, 11 Dec 2020 23:35:57 +0100 (CET) Date: Fri, 11 Dec 2020 23:35:56 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Hulk Robot , Luo Meng , Hans de Goede , Dmitry Torokhov Subject: Re: [PATCH 4.19 37/39] Input: i8042 - fix error return code in i8042_setup_aux() Message-ID: <20201211223556.GA18452@amd> References: <20201210142602.272595094@linuxfoundation.org> <20201210142604.116728762@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20201210142604.116728762@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Luo Meng >=20 > commit 855b69857830f8d918d715014f05e59a3f7491a0 upstream. >=20 > Fix to return a negative error code from the error handling case > instead of 0 in function i8042_setup_aux(), as done elsewhere in this > function. >=20 > Fixes: f81134163fc7 ("Input: i8042 - use platform_driver_probe") I'd recommend not taking this. It is not known to fix end-user-visible-bug, i8042 is normally quite fragile, and the patch is less then month old so did not get adequate testing. Yes, code looks cleaner after the fix. With i8042, that does not mean much. Best regards, Pavel > --- a/drivers/input/serio/i8042.c > +++ b/drivers/input/serio/i8042.c > @@ -1472,7 +1472,8 @@ static int __init i8042_setup_aux(void) > if (error) > goto err_free_ports; > =20 > - if (aux_enable()) > + error =3D aux_enable(); > + if (error) > goto err_free_irq; > =20 > i8042_aux_irq_registered =3D true; >=20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl/T9EwACgkQMOfwapXb+vIOrgCgkleQhHVlJ1+qKo3j36KSD2wp LVoAn3a8CM3snysTQMMiT45RcjNmKw7J =tIwr -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--