From mboxrd@z Thu Jan 1 00:00:00 1970 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 E15A3C433F5 for ; Fri, 28 Jan 2022 20:15:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 76F13820F8; Fri, 28 Jan 2022 21:15:42 +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="SAI1fwMk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 908E783264; Fri, 28 Jan 2022 21:15:39 +0100 (CET) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (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 CFB50837E7 for ; Fri, 28 Jan 2022 21:15:36 +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-qv1-xf33.google.com with SMTP id b12so6907351qvz.5 for ; Fri, 28 Jan 2022 12:15:36 -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=KKhKvvuSwBazp3R4WuPqmV013ccAoCl+lAoZhNx11lY=; b=SAI1fwMkVp8VPL74Pib+165tnlKMPebQKoIK7i8CftUtmAMkCaJsj26AThw8h8RwJI P6011k1srn9+B4/ZZTYWdNv+qQbqq7AZJp9oMCmXkI2Y7GmPC5tx8QPje/BlskfZZov4 vhPtFGwyzTAxwHz7ZlgMkO8zKKVbk1Qq3cB0E= 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=KKhKvvuSwBazp3R4WuPqmV013ccAoCl+lAoZhNx11lY=; b=huf1CXQcyWTvvuPEtaR5LTdLActhS8p2qSjCc6L1Rl2Yl5CQxUpRBMgj+Y4D0iWQV6 mK5m7qrN+L8o2JynxtmJrzkdKcvZMN7UqLCiKUZm/nGIfqyu5ms9PyBxQXwiwZHtMjKF r6sJPRBDFTU3M/Ep1nunWc258EAc3WsUtHftRltQ0G1zhEFv4Ox/KD6+0i53ycsW9j8f /XvlEAkIWbcUth5/EeJQit3wx7bZ5kFftwhBxEloGdz98xd9qzgZS2ciepOIYSvQynkZ 3qR/sarAApnuJdnCqSXje0rOw7U4XgYO62jZnKcx/JJ8woLLjwB8c3Tsw85QuE2UUMuq JtMw== X-Gm-Message-State: AOAM532fYZtKaO3lGKl7DpNfKohTDPB2mSLRP9UwnriVE2ZmgbPrk71N +/vdDtaOIH3b3Z3fVZNToO8rNr5P+c5wrg== X-Google-Smtp-Source: ABdhPJxvhfcaJWCL/0i4fMGpkaYAgf6x/9cMd5wju0wE8UwT1ba1/bdc6yieHIVUzDJPmUXd8UF0FQ== X-Received: by 2002:a05:6214:21e5:: with SMTP id p5mr8417232qvj.130.1643400935636; Fri, 28 Jan 2022 12:15:35 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id c21sm1393053qtx.89.2022.01.28.12.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 12:15:35 -0800 (PST) Date: Fri, 28 Jan 2022 15:15:33 -0500 From: Tom Rini To: Matthias Schiffer Cc: u-boot@lists.denx.de Subject: Re: [PATCH] fastboot: only look up real partition names when no alias exists Message-ID: <20220128201533.GM7515@bill-the-cat> References: <20211216102638.111391-1-matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B5JjOzmn0Nsc+m1x" Content-Disposition: inline In-Reply-To: <20211216102638.111391-1-matthias.schiffer@ew.tq-group.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 --B5JjOzmn0Nsc+m1x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 16, 2021 at 11:26:38AM +0100, Matthias Schiffer wrote: > Having U-Boot look up the passed partition name even though an alias > exists is unexpected, leading to warning messages (when the alias name > doesn't exist as a real partition name) or the use of the wrong > partition. >=20 > Change part_get_info_by_name_or_alias() to consider real partitions > names only if no alias of the same name exists, allowing to use aliases > to override the configuration for existing partition names. >=20 > Also change one use of strcpy() to strlcpy(). >=20 > Signed-off-by: Matthias Schiffer > Reviewed-by: Sean Anderson Applied to u-boot/master, thanks! --=20 Tom --B5JjOzmn0Nsc+m1x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmH0TuUACgkQFHw5/5Y0 tyzqMAwAnx2BUg/3WnSuvY5stJb7b28v+S0EvVOzObCK1ZQQbKq6eflG+r84Y1sj NzNvpdyFVGh14ATXeKYg1qCO+wZNo4bo/6z5wmOGosDTXJICtVk1NitsgV4lQf3M O+WNJ/jSjvoMGNYrdu2mCpKlkC4xkKNQJUZjgWPegdd3V77bM/Q1m0dgbKRzwrbr uh5cc/yKU8Gf4IzyRxdPIXs9VMTlZgFBYVGDiQiNBl88x/wJNgkR1O3JJi24OxgF 6CYciMf98CiHRsO9vbecU7Gz+6m7GcBp+UE4sKTuYFp2K7L+Bg7mR/x9kFc44RRT oSQgVrnNwSK5ZlmLM9JZwlKtHgdR6sld/PJtiyexDMCCy8zxDwfpcXbIXDiCjxkL gdB13EVkfioNVHA2YdBnbTQnpi9CAIoL4/zMnSzoU4+vmS2JLJjNMbsDcgAxrQFE 7Rabhokjx0lzX5/fPDn0EfNOiVLG+Ye3H1X/kkwxv5Znerpe4Vz2XpbKnaDgTdHC S3dJapaY =gOtW -----END PGP SIGNATURE----- --B5JjOzmn0Nsc+m1x--