[PATCH] mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions()

Artem Bityutskiy dedekind1 at gmail.com
Wed Oct 10 10:36:18 EDT 2012


On Tue, 2012-09-25 at 15:27 +0530, Sachin Kamat wrote:
> The pointer returned by kzalloc should be tested for NULL
> to avoid potential NULL pointer dereference later. Incorrect
> pointer was being tested for NULL. Bug introduced by commit fbcf62a3
> (mtd: physmap_of: move parse_obsolete_partitions to become separate
> parser).
> This patch fixes this bug.
> 
> Cc: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
> Cc: Artem Bityutskiy <artem.bityutskiy at intel.com>
> Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>

Added

Cc: stable at vger.kernel.org [3.2+]

and pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121010/7b4740fc/attachment.sig>


More information about the linux-mtd mailing list