]> Git Repo - J-u-boot.git/commit - drivers/mtd/mtd_uboot.c
mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()
authorBoris Brezillon <[email protected]>
Sun, 2 Dec 2018 09:54:26 +0000 (10:54 +0100)
committerJagan Teki <[email protected]>
Wed, 5 Dec 2018 19:15:36 +0000 (00:45 +0530)
commit96b06434e56ce5dca391e8417d293132ff7164e0
tree77bada215c14905037cea762a22f16077498aefe
parent492151b2093ee4df173f7e10da4938ef7c2a2156
mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

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 <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
drivers/mtd/mtd_uboot.c
This page took 0.035455 seconds and 4 git commands to generate.