[PATCH] drivers/mtd/maps/ts5500_flash.c: avoid calling map_destroy on NULL

Artem Bityutskiy dedekind1 at gmail.com
Sun Feb 6 10:08:24 EST 2011

On Wed, 2011-02-02 at 18:13 +0100, Julia Lawall wrote:
> map_destroy dereferences its argument.  The call is furthermore only
> reachable when this argument is NULL.  Thus the call is dropped.
> The semantic match that finds this problem is as follows:
> (http://coccinelle.lip6.fr/)

Pushed to l2-mtd-2.6.git, thanks!

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

More information about the linux-mtd mailing list