2012-02-03 05:44:28

by Artem Bityutskiy

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

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


Attachments:
signature.asc (836.00 B)
This is a digitally signed message part