Re: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-18 Thread Boris Brezillon
On Sat, 17 Nov 2018 11:59:52 +0100 Miquel Raynal wrote: > 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

Re: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-17 Thread Miquel Raynal
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"). > > Fixes: ff4afa8a981e ("mtd: uboot: search for an

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

2018-11-16 Thread 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 ---