lkml.org 
[lkml]   [2012]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] UBI: Fix error handling in ubi_scan()
From
Date
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-02-03 06:47    [W:0.035 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site