Fix "ubi part" cmd re-entrancy
authorKarl Beldan <karl.beldan@gmail.com>
Thu, 23 Sep 2010 08:46:31 +0000 (10:46 +0200)
committerStefan Roese <sr@denx.de>
Mon, 27 Sep 2010 13:06:00 +0000 (15:06 +0200)
commit86af10cac421e7156da4a5f154ab34026e35a2c3
tree017179e1327be124383fea9daa5e3d03329b8079
parentd03161b455125f0581918b25fabc5fde0268ae4e
Fix "ubi part" cmd re-entrancy

Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command)
reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path.

Signed-off-by: Karl Beldan <karl.beldan@gmail.com>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/ubi/build.c