[PATCH 1/2] UBIFS: make ubifs_lpt_init clean-up in case of failure
Sidney Amani
seed95 at gmail.com
Sun May 20 01:49:12 EDT 2012
On Fri, May 18, 2012 at 9:32 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
>
> 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 at linux.intel.com>
Acked-by: Sidney Amani <seed95 at gmail.com>
--
Sidney
More information about the linux-mtd
mailing list