Re: [PATCH] UBI: Fix error handling in ubi_scan()

From: Artem Bityutskiy
Date: Fri Feb 03 2012 - 00:44:24 EST


On Mon, 2012-01-30 at 18:20 +0100, Richard Weinberger wrote:
> Two bad things can happen in ubi_scan():
> 1. If kmem_cache_create() fails we jump to out_si and call
> ubi_scan_destroy_si() which calls kmem_cache_destroy().
> But si->scan_leb_slab is NULL.
> 2. If process_eb() fails we jump to out_vidh, call
> kmem_cache_destroy() and ubi_scan_destroy_si() which calls
> again kmem_cache_destroy().

Pushed to ubi-2.6.git, thanks!

--
Best Regards,
Artem Bityutskiy

Attachment: signature.asc
Description: This is a digitally signed message part