diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-18 11:32:36 (GMT) |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 17:19:01 (GMT) |
commit | 499429760650018216eb8d0b35067cf2c5c4520b (patch) | |
tree | b5f717005065ae0e28fd6d3f586a12c18de6daad /fs/locks.c | |
parent | a6aae4dd0ffad299a33d122f8a339b399bee5381 (diff) | |
download | linux-fsl-qoriq-499429760650018216eb8d0b35067cf2c5c4520b.tar.xz |
UBIFS: make ubifs_lpt_init clean-up in case of failure
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>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions