UBI: bugfix in error path
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Jun 2007 09:06:30 +0000 (12:06 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:55:55 +0000 (16:55 +0300)
commit94784d916458d51043ba76849b9beaf330baef2f
treea7b71f0aa61ce5524dc602716c6ae722ff78d461
parent7753f1692f53d82b4cc08084462b0fd2803c1f04
UBI: bugfix in error path

When volume creation fails, we have to set ubi->volumes[vol_id]
back to NULL.

This patch also tweaks some debugging stuff.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/debug.c
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vtbl.c