From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Sat, 17 Nov 2018 11:59:52 +0100 Subject: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name() In-Reply-To: <20181116221542.27922-1-boris.brezillon@bootlin.com> References: <20181116221542.27922-1-boris.brezillon@bootlin.com> Message-ID: <20181117115952.723fa682@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Boris, Boris Brezillon wrote on Fri, 16 Nov 2018 23:15:42 +0100: > The environment is not guaranteed to contain a valid mtdids variable > when called from mtd_search_alternate_name(). Call get_mtdids() instead > of env_get("mtdids"). >=20 > Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name with = the mtdids") > Signed-off-by: Boris Brezillon > --- Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l