UBIFS: make ubifs_lpt_init clean-up in case of failure
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 18 May 2012 11:32:36 +0000 (14:32 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 20 May 2012 17:19:01 +0000 (20:19 +0300)
Most functions in UBIFS follow the following designn pattern: if the function
allocates multiple resources, and failss at some point, it frees what it has
allocated and returns an error. So the caller can rely on the fact that the
callee has cleaned up everything after own failure.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Acked-by: Sidney Amani <seed95@gmail.com>

No differences found