mtd: nand: assign mtd->name in find_full_id_nand
authorCai Zhiyong <[email protected]>
Wed, 25 Dec 2013 13:19:21 +0000 (21:19 +0800)
committerBrian Norris <[email protected]>
Sat, 11 Jan 2014 20:07:18 +0000 (12:07 -0800)
commit092b6a1dd0c82013f59c717b8f2ca057863183e3
tree993d51f0e3bdd1c8dd4ab014626c0fb7f28f0486
parent3e77216c2acf063d4233c73fb3edc189142ae439
mtd: nand: assign mtd->name in find_full_id_nand

This patch assigned the type->name to mtd->name when mtd->name is
NULL in function "find_full_id_nand".
mtd->name is NULL may cause some problem.

Signed-off-by: Cai Zhiyong <[email protected]>
Acked-by: Huang Shijie <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
drivers/mtd/nand/nand_base.c