UBI: fix error path
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Dec 2007 12:02:09 +0000 (14:02 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:22 +0000 (17:08 +0300)
Error path in volume creation is bogus. First of, it ovverrides the
'err' variable and returns zero to the caller. Second, ubi_assert()
in the release function is wrong.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found