[PATCH] UBI: potential leak in ubi_scan_erase_peb

Artem Bityutskiy dedekind at infradead.org
Fri Jul 20 03:25:57 EDT 2007


On Thu, 2007-07-19 at 15:22 -0400, Florin Malita wrote:
> Coverity (1769) found the following problem: if the erase counter 
> overflow check triggers, ec_hdr is leaked.
> 
> Moving the allocation after the overflow check should take care of it.
> 
> Signed-off-by: Florin Malita <fmalita at gmail.com>

Committed, thank you!

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




More information about the linux-mtd mailing list