ubi: Error freeing ubi->vtbl while unloading

Artem Bityutskiy dedekind at infradead.org
Sun Jun 17 08:49:27 EDT 2007


On Fri, 2007-06-15 at 15:31 +0530, Vinit Agnihotri wrote:
> I downloaded latest git & backported ubi to make it work in linux
> kernel 2.6.18.3.
> 
> Machine details
>  AMD opteron 64bit SMP, linux kernel version 2.6.18.3
> 
> However while unloading ubi I discovered slab corruption. Ths problem
> is as follows.
> 
> ubi->vtbl is allocated using vmalloc() in vtbl.c empty_create_lvol(),
> but it is freed in build.c with kfree()

Thanks, fixed the patch, added Signed-off-by and committed. 

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list