Skip to content
Commit 49942976 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

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: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Acked-by: default avatarSidney Amani <seed95@gmail.com>
parent a6aae4dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment