Re: [PATCH 1/1] mtd: physmap_of: fix illegal dereference

From: Stef van Os
Date: Fri Feb 01 2013 - 12:11:16 EST


On 02/01/2013 05:54 PM, Artem Bityutskiy wrote:
On Thu, 2013-01-17 at 19:22 +0100, Stef van Os wrote:
d68cbdd introduced a new way of getting the name of an mtd
partion. The character pointer is not initialized, and only
checked against NULL, not at other random garbage.
This patch fixes the resulting panic.

Signed-off-by: Stef van Os<stef.van.os@xxxxxxxxxxx>
A similar fix already sits in the mtd tree:

http://git.infradead.org/mtd-2.6.git/commit/7dfe4be351e81656ca1068e5d4ead235c7ba94b1

Ah, sorry, I wasn't aware of this. But, as long as some fix for this issue makes it into mainline, I'm happy :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/