[PATCH V3 0/2] mtd: nandsim: fix error handling

Brian Norris computersforpeace at gmail.com
Tue Jul 7 12:59:13 PDT 2015


On Thu, Jun 25, 2015 at 02:23:12AM +0000, Sheng Yong wrote:
> V3:
> Fix compiling error of PATCH 2 because of my silly bindly rebase without
> testing :( These 2 patches are already tested.
> 
> V2:
> Resend the patches against l2-mtd/master.
> 
> V1:
> These 2 patches fix error handling when nandsim initialization fails.
> 
> In alloc_device(), if creating slab memory fails, free_device() will try
> to destroy the slab memory without checking if it exists.  PATCH 1 fixes
> it.
> 
> If something goes wrong in init_nandsim(), it calls free_device() before
> returning. However, the caller of init_nandsim() - ns_init_module() - also
> does the cleanup by calling free_nandsim(). This causes double free. PATCH
> 2 fixes it.

Pushed both to l2-mtd.git. Thanks!

Brian



More information about the linux-mtd mailing list