Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A1EFC433EF for ; Tue, 7 Jun 2022 16:49:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 060798439D; Tue, 7 Jun 2022 18:47:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="HS8ndiDV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 686328439D; Tue, 7 Jun 2022 18:47:44 +0200 (CEST) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3F415843B3 for ; Tue, 7 Jun 2022 18:47:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x734.google.com with SMTP id o73so8682034qke.7 for ; Tue, 07 Jun 2022 09:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=G2DUT1Co+grUOzBUr8ytA4fG8XbS15wqMHcFUMGXhZY=; b=HS8ndiDVWC9rQRl2BitAJXHkDcvhn9nwIb0m+2yS9U7VBTfnVcIgqg5w6OYICEN56M W5RA4BMWD237rvGJX2R2DS54kL3jHeK+xtubHZqZ7rRaldQ3xqlnVZkHSivq97927lY9 7uRADq/fYtvDVo36j8pw4vbYGTpzcr0cyIWKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=G2DUT1Co+grUOzBUr8ytA4fG8XbS15wqMHcFUMGXhZY=; b=ZQcsOH+3kYbey6XqYKmSI+bfIOGtWc6a0koAH0ui1v0gPl5WvMHL1utkZZEVtWyk6H LXinDQnGzn21Fpq6RvkV28fvQGT8LOioemqzaveKy83qJ7qZSoJp8rttVvpHIIYFQTKe Ojwy9XF/3aLZlXfWTXDXaX5C4JUDJq196XoJdxl2V7SdfylmbJWd9YzCNKAyOWrl4FPI mO+Hu6aw91wQHO6sZ5Vz/W/hN+w5CC8SCV7P2Vof9FTp4hqrW6VRo80gQgGr6GVDzOU/ 2W4MQKmG9F2jbrpy697nH9P8QU/Dk3Lhg7DK/HuWo7uQj/qP/maefnIneWHtkudUUAZ7 lX9g== X-Gm-Message-State: AOAM532TxgMRHGB14FMQAkuGboKekmH0PA2R3Qms7B3jE9VEeqyCTqQK G6UIk5mu4LjsufTHq6lyC3Mp2Q== X-Google-Smtp-Source: ABdhPJykd4Y67HcttZ5+FoWwIId9mhoRVOJxO+F7ijlEfDIRLjawGPNl8Mo1DHkIf0yBsJPSNC7ndw== X-Received: by 2002:a05:620a:d83:b0:6a6:5fde:2325 with SMTP id q3-20020a05620a0d8300b006a65fde2325mr20118190qkl.407.1654620453898; Tue, 07 Jun 2022 09:47:33 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id o6-20020ac872c6000000b00304ea0a86cesm5385015qtp.81.2022.06.07.09.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 09:47:33 -0700 (PDT) Date: Tue, 7 Jun 2022 12:47:31 -0400 From: Tom Rini To: =?iso-8859-1?Q?Pierre-Cl=E9ment?= Tosi Cc: u-boot@lists.denx.de, Bin Meng , Simon Glass , Stefan Roese Subject: Re: [PATCH] pci: Handle failed calloc in decode_regions() Message-ID: <20220607164731.GS2484912@bill-the-cat> References: <20220519164830.3934669-1-ptosi@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OiITrshLgfui8fEl" Content-Disposition: inline In-Reply-To: <20220519164830.3934669-1-ptosi@google.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --OiITrshLgfui8fEl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 19, 2022 at 05:48:30PM +0100, Pierre-Cl=E9ment Tosi wrote: > Add a check for calloc() failing to allocate the requested memory. >=20 > Make decode_regions() return an error code. >=20 > Cc: Bin Meng > Cc: Simon Glass > Cc: Stefan Roese > Signed-off-by: Pierre-Cl=E9ment Tosi > Reviewed-by: Stefan Roese Applied to u-boot/next, thanks! --=20 Tom --OiITrshLgfui8fEl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKfgSMACgkQFHw5/5Y0 tywlQgwAjitRfECFLYOCQqlZ8Ec9TEwV/mEn8bqpuWFhXKQN4V5pdBPqwpcHat+B mkxfq7LjmX80kCtR0lU1i2/N5M1QNAEr33DSoZRJBP19glIoCQ2IGBIFqOlUGDC3 L7vw3vDkoSFn71nkRP+P7YPB9bE6yKwNSuEz7zAaU48PbfSRduZmI6bGYCl7RZBK dYtO9K9saPPhGXTdomJw9gkY3Hpc1fuoS1S+iW++/a4PPU8LXIhtHxm5diuB9Ao1 7URh3kPnXlfpUt2GRdqRaBq/MvRCJLxh7dKuM/BHVH+6eM7EQMeJcVjdbSemJ2MC EeWEtTab6pNQdVHbDHircekLx7zmY8mBRf3c3vYBHTVfTuY6pnc+ipCJRppMoEoi BzlWz/5s7JHYkO8UrIONrDEDMneEBdD6CRJ/nEKU8B0fNlGntG7AEV9fzcK6/XN1 sE0CquUnQFsmnrhfjA4uBHQrhx6g+16wiBo4/4EnB2VpO73DZp1T14OGSpBCrfWg gKoYa2Wq =wVpl -----END PGP SIGNATURE----- --OiITrshLgfui8fEl--