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 6D81AC433FE for ; Thu, 2 Dec 2021 12:14:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D102180FCE; Thu, 2 Dec 2021 13:14:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="kDpNZFil"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA48C82F63; Thu, 2 Dec 2021 13:14:37 +0100 (CET) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 A60A680F56 for ; Thu, 2 Dec 2021 13:14:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id n15so27312225qta.0 for ; Thu, 02 Dec 2021 04:14:34 -0800 (PST) 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=CTlMvbj/mBauGUtkpOoEs11OotAjGGxn6DFlaaJCjtU=; b=kDpNZFilP41NVWrlkYlTxLMesPzzz7GitdYdtrPCwiJyH3/cLa3sOilYMcEGpImLzC 86+gsJHg5eV+2w5/xH5ELV731AMwXyHWdDydW30LAnLP/selSOFYM5mk05UTvFjhrpbt jttTXP1eUWHTXVyWAzp0+q4oGzQ4IZ3D8xnmQ= 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=CTlMvbj/mBauGUtkpOoEs11OotAjGGxn6DFlaaJCjtU=; b=efCwb7qY5jU7qweGn6CrCDrJ1ZRNQbMNwZt6CqNQA1PUSgUzp5M4zbCSZ5qvbmoy3I RkP9EDO65MzIc7YR0iwGd0ykC6r0krzwScc8r8OeknM9r6WCNeQQZq4fq0NSbK3mXnPp 3J2GM1uEDl8z9b36JqAkgzJEcpYYGIldfv0Rf3sP4eQzFqkatTlJBbH3cjjl0tKcmtVS +/Pv+E+Y7JVa/OE6mwqHihKweIbXc9CI890WdNsmlU6lSE7kA2vDDktmSIESVSBv39aM XEO4Liuq1iKNaG+eZrDJ90w3yGGP4fB19znPC/rtBPc/G1rp3PB5Cdq5A68v7gI6pUic LZ0A== X-Gm-Message-State: AOAM533rUhsUrMxg3IQq4OofQw+tVX6nvlKF8tYKoLQQVHSwETFB4WqM sS6asYpZ32NkNhJWRM6DDDEvgQ== X-Google-Smtp-Source: ABdhPJyZI/9R7dbOD0/KnLmiDjBSznre43w2qFD+wfhGiYjIRsSL4j5ofe7AE6tBpGeNhPnzBYRDKA== X-Received: by 2002:ac8:4e45:: with SMTP id e5mr13475804qtw.538.1638447273466; Thu, 02 Dec 2021 04:14:33 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-c825-72b9-4e49-4490.res6.spectrum.com. [2603:6081:7b01:cbda:c825:72b9:4e49:4490]) by smtp.gmail.com with ESMTPSA id p10sm1585102qtw.97.2021.12.02.04.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 04:14:32 -0800 (PST) Date: Thu, 2 Dec 2021 07:14:31 -0500 From: Tom Rini To: Nishanth Menon Cc: u-boot@lists.denx.de, Aswath Govindraju , Tarun Subject: Re: [PATCH] spl: fit: Skip attempting to load 0 length image Message-ID: <20211202121431.GN1220664@bill-the-cat> References: <20211019173229.16200-1-nm@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qgd2S+2VS1hsWwXW" Content-Disposition: inline In-Reply-To: <20211019173229.16200-1-nm@ti.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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.2 at phobos.denx.de X-Virus-Status: Clean --Qgd2S+2VS1hsWwXW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 19, 2021 at 12:32:29PM -0500, Nishanth Menon wrote: > When, for various reasons, a bad FIT image is used where a loadable > image is marked as 0 length, attempt is made for a 0 length allocation and > read of 0 byte read operation. >=20 > Instead provide warning in log and skip attempting to do such a load. >=20 > Signed-off-by: Nishanth Menon > Reviewed-by: Aswath Govindraju Applied to u-boot/next, thanks! --=20 Tom --Qgd2S+2VS1hsWwXW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGouKcACgkQFHw5/5Y0 tywi0Av9HBpCvXBy/Ruu2GIKhlbDkL5eIgdMtt+5m/pM8Hy35yEUnjRjcC6ShSgL VL3DE6KhjFmkrhDznComtXrg+Yneh0BtYZOB8/MKXUXuvGa2/IiP9eoJV9AEoM6L bExnpiTsgMa2f35QfI8U0SRP8M7A3j833VQBHpU7vIasqBFvEVJLnR1RvW3u2qgF ZYlIxwBuXUhxFcypF5z1EA37PBxiZNpAIbZd4q9sbomxBmrotUhhRpxt1ECHcKcr +O6fL3y0UHanosatKIL4uL022ZDlSW29x3R1eBj95+tV0Dj/sO3p8U+L+dpRHIzv YydXmqExnaCNefocDmRFycQqSW4CC6CsL8Ld7vbI7pPpt2+tQlIdDv9vZdO4/jza WOTX9/n3SSkkevb8ipfwmymOXeCwcWSgFSuvZ0t5qJ+RexPl6b0Z4ZAq4KXZuLLV odym1Z7kkZ0frpo/CGf+Dwx/NaAp0KLnLtS2cnIweiYyVmng+4i1tsjK9CAdE8GC kstXVopJ =yDoH -----END PGP SIGNATURE----- --Qgd2S+2VS1hsWwXW--