Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp805481ybj; Thu, 7 May 2020 08:03:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKRbV40Qlav9h1UJcfb5VcvaRAVoDt/i6Y2aB0HcKRxXJbmr0dAOnO15SmlIsCSUaWeOmZI X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr12298165edr.313.1588863803732; Thu, 07 May 2020 08:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588863803; cv=none; d=google.com; s=arc-20160816; b=ZwGSjwOn/UpCEU+vAY/HX1VjQW7RxWNFWIzgmAD2Q81Uqv4eo07jWR3G1ZuwHLjQPT /+1s1bJeXQVv2YYKUPFl4CNcUzY2hPV8SRL7i+kT7USRCFaKPYr6CvrLdR3A/jgoJVtV Vq5lh+FW9LCXf8qaP+2DrHExT6Ybjh11OQ+A+tYaQyioqThUKaK9mMFLpaZgWb03h6RP xxPY4cZQ3m3vs0nI83aAONNBRXVlWKf9eGE9qrRrclVP/owTERjwo5cNqxNxPXePw924 WWKj3aFlGJte+6WpwzMRdGODJJLXM5FpW0yHB6EX6Os4NP8G0syIamQ7GA2ZLdAQIbVs jlxA== 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:date:cc:to:from:subject:message-id:dkim-signature; bh=naj0keJ9OA5+ZkME3r47DK1IAppAUaF9jwiVH91fafY=; b=OKGDj2JURJmS2wpOqgrSICuo2wP9dO4yGZIuXs5TD2tLkExwKVsh3vsHY2RPX1Dvxe +fhfZXUmb7QV/Tg0zC0JU0Eb5mJgLmMdeLWMBfU1W8cBX5Xz0RpwBIfVuHlu2CwTHlVg oE98aXGvJ1Ngk3Y8zK4F+e9p7rRXs4Zq8Q/35Kcct20zx6DaxjUZ2ObTGkZgnlZ2XWCi 8QbHzxJSq8prTNvotepTXNxbG3RZ+nWvJvVEdKr9jOmKKvB0M/6RNTZJN192GMluV8qW GLJKEuSe6fl2d2b7Gmac+o5JF7kPFz4fOmQPHrj5wyDb2qRBahlWfi8JwldeTARX4rUz A9CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igalia.com header.s=20170329 header.b=Q59R7YOT; 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 qh10si3429364ejb.49.2020.05.07.08.02.59; Thu, 07 May 2020 08:03:23 -0700 (PDT) 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; dkim=pass header.i=@igalia.com header.s=20170329 header.b=Q59R7YOT; 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 S1727094AbgEGO7N (ORCPT + 99 others); Thu, 7 May 2020 10:59:13 -0400 Received: from fanzine.igalia.com ([178.60.130.6]:58021 "EHLO fanzine.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgEGO7M (ORCPT ); Thu, 7 May 2020 10:59:12 -0400 X-Greylist: delayed 1466 seconds by postgrey-1.27 at vger.kernel.org; Thu, 07 May 2020 10:59:10 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=MIME-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=naj0keJ9OA5+ZkME3r47DK1IAppAUaF9jwiVH91fafY=; b=Q59R7YOTpic9UXJ4FFqiIfOba9Cf2rZtyzNjuiCEs6cI6bpWijPi2XcIBA43e12s/u3tXII1N9IBxfxJUpQgAU+LbcJOn7y1T+YEnowuWqJIxpelV6bBu/5PPMw6JymwAkCXoQrWu4cQF5jgsVwfsGsM5hRlItql6kM4wF53LwJ/XFavVuoUq6FXRscPWmgGCX0C1CckiYLvU9TBf0FSy2FncbYg3GfWyiNLHaiOU9g56ofyo1G9NPgQECv1faRVCKJoXEcAVR322mEaYZF9++/NPmFGLpcwKrbN5AqGSL8qWc8Z6udrc3hyneNpdV262VqSbdd4TKCJsK1UYtCjFg==; Received: from 53.red-88-15-141.dynamicip.rima-tde.net ([88.15.141.53] helo=maxwell) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1jWhbM-0008Mj-Or; Thu, 07 May 2020 16:34:16 +0200 Message-ID: Subject: Re: [PATCH -next] ipack: tpci200: fix error return code in tpci200_register() From: Samuel Iglesias =?ISO-8859-1?Q?Gons=E1lvez?= To: Wei Yongjun , Jens Taprogge , Greg Kroah-Hartman , Zhouyang Jia , Kees Cook Cc: industrypack-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Hulk Robot Date: Thu, 07 May 2020 16:34:06 +0200 In-Reply-To: <20200507094237.13599-1-weiyongjun1@huawei.com> References: <20200507094237.13599-1-weiyongjun1@huawei.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-6OhG+JRPe3bIgyHL09ni" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-6OhG+JRPe3bIgyHL09ni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Wei, Thanks for the patch! Patch is, Acked-by: Samuel Iglesias Gonsalvez Greg, Would you mind picking this patch series through your char-misc tree? Thanks! Sam On Thu, 2020-05-07 at 09:42 +0000, Wei Yongjun wrote: > Fix to return negative error code -ENOMEM from the ioremap() error > handling > case instead of 0, as done elsewhere in this function. >=20 > Fixes: 43986798fd50 ("ipack: add error handling for ioremap_nocache") > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun > --- > drivers/ipack/carriers/tpci200.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/ipack/carriers/tpci200.c > b/drivers/ipack/carriers/tpci200.c > index 8a9c169..b5eec18 100644 > --- a/drivers/ipack/carriers/tpci200.c > +++ b/drivers/ipack/carriers/tpci200.c > @@ -309,6 +309,7 @@ static int tpci200_register(struct tpci200_board > *tpci200) > "(bn 0x%X, sn 0x%X) failed to map driver user > space!", > tpci200->info->pdev->bus->number, > tpci200->info->pdev->devfn); > + res =3D -ENOMEM; > goto out_release_mem8_space; > } >=20 >=20 >=20 >=20 --=-6OhG+JRPe3bIgyHL09ni Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEQP+ZAvaXWkfuKXiEf/S6MvF9w0MFAl60HF4ACgkQf/S6MvF9 w0NaghAAysFj+kKNNuNU7yebV5ggXMJd2UwHJkYMm3U9YUGYnzW/GFy9MA2UuQjZ yUqjneHFo3yA5F9Ef+ZCFGXHxuEQbGTeW0v2mFrDb5JlyMWKHDqBkCDu1h1Y6TJ8 ty4whqUPQpgPOB6DurAur8todoKlxwAXyTpLcX63LF4zXGoojKLczsuVXoFJXVIJ 6s1JlITIaLNDf0kFX6ql5HTsL6Lg+WRl6wmls37YlPzq04C2EA9gPeN5xCTw6hlp 7t4qTLnY8sh7ZvEA2TsAPkHBICfW3uN2CsuMs9h4fDlD5qijrGElw6NntzctxjZf EfCvVlpMY9Ac2FHTpfYb6ipUI+bqOd0winx1pE0ilnoc/K8lPYaTSpy43fhlUi8X EPIlcWEvEwtDm2UDnoassPJzUDuKUHpYkfCvbsZPd576AagoF/F1XvcnIIAiwLkC dxr04EsVpIaCdvdXRHM4zFfff2g9OEgEGQ4yrGcW6iYD9xrWmv2XsEBuBcwM1EEc uxpovOBUUbyYHsqvB1wJ7Le3v0sfnqRw1xDpxNNOl52RaGL/2ElL7NZFOmryRYbi LV8YxTfTstEZS7s7LFwsAAQXzUjqSkSuaQFCYWveCk1+PvoRu0coKq/NB0W5O1TG dT6dacdPb19LFVL/KayLG+14LRlmKW/6PcbL1HKbNWyr5ok6QBs= =0aD1 -----END PGP SIGNATURE----- --=-6OhG+JRPe3bIgyHL09ni--