[PATCH] mtd: fix uninitialised mtd map name
Brian Norris
computersforpeace at gmail.com
Sat Feb 9 17:54:43 EST 2013
On Sat, Feb 2, 2013 at 1:48 PM, Guennadi Liakhovetski
<g.liakhovetski at gmx.de> wrote:
> Do I see it right, that this patch didn't make it into the kernel on time
> for 3.8? Could you please, make sure it makes it to 3.9?
It looks like an independent but identical patch made it in for 3.8-rc7:
commit 7dfe4be351e81656ca1068e5d4ead235c7ba94b1
Author: Baruch Siach <baruch at tkos.co.il>
Date: Sun Dec 23 13:10:50 2012 +0200
mtd: physmap_of: fix cmdline partition method w/o linux, mtd-name
Commit d68cbdd4fb (mtd: physmap_of: allow to specify the mtd name for retro
compatiblity) broke cmdline partitioning using dev_name() in the
kernel command
line. of_property_read_string() does not touch mtd_name when
linux,mtd-name is
not present in the device tree, which causes map.name to be set to a random
value. Fix this by initializing mtd_name to NULL.
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
Brian
More information about the linux-mtd
mailing list