[PATCH RESEND] mtd: onenand: onenand_base: check for region != NULL

Artem Bityutskiy dedekind1 at gmail.com
Fri May 6 15:04:46 EDT 2011


On Fri, 2011-05-06 at 09:17 +0000, john.maxin at nokia.com wrote:
> Coverity has reported that inside the function "onenand_block_by_block_erase()" 
> in onenand_base.c, we should add a check to prevent the incrementing of 
> possible NULL value for "region"
> 
> Signed-off-by: Maxin B. John <john.maxin at nokia.com>

This patch is not against the upstream kernel, I could not apply it. But
it is trivial enough and I could manually apply it. Pushed to
l2-mtd-2.6.git tree, thanks.

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




More information about the linux-mtd mailing list