[U-Boot] [PATCH v3 05/11] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

Heiko Schocher hs at denx.de
Wed Nov 21 06:45:25 UTC 2018


Hello Boris,

Am 19.11.2018 um 21:59 schrieb Boris Brezillon:
> 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").
> 
> Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name with the mtdids")
> Signed-off-by: Boris Brezillon <boris.brezillon at bootlin.com>
> Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
> ---
> Changes in v3:
> - None
> 
> Changes in v2:
> - Add Miquel's R-b
> - Move board_mtdparts_default() prototype def to fix a build failure
> ---
>   drivers/mtd/mtd_uboot.c | 49 ++++++++++++++++++++---------------------
>   1 file changed, 24 insertions(+), 25 deletions(-)

Tested-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list