From: Artem Bityutskiy <artem.bityutskiy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
Cc: David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH] mtd: physmap_of: fix cmdline partition method w/o linux,mtd-name
Date: Mon, 28 Jan 2013 18:02:21 +0200 [thread overview]
Message-ID: <1359388941.7570.17.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <20130124090547.GB7697-MwjkAAnuF3khR1HGirfZ1z4kX+cae0hd@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1632 bytes --]
I pinged dwmw2 about this already. This is his call to merge the driver.
I will ping him again.
On Thu, 2013-01-24 at 11:05 +0200, Baruch Siach wrote:
> Hi linux-mtd, Artem, David,
>
> Ping?
>
> It's been a month, and this is a simple uninitialized pointer dereference bug
> fix.
>
> baruch
>
> On Sun, Dec 23, 2012 at 01:10:50PM +0200, Baruch Siach wrote:
> > 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-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
> > Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
> > ---
> > drivers/mtd/maps/physmap_of.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
> > index 37cdc20..6fb2bd8 100644
> > --- a/drivers/mtd/maps/physmap_of.c
> > +++ b/drivers/mtd/maps/physmap_of.c
> > @@ -170,7 +170,7 @@ static int of_flash_probe(struct platform_device *dev)
> > resource_size_t res_size;
> > struct mtd_part_parser_data ppdata;
> > bool map_indirect;
> > - const char *mtd_name;
> > + const char *mtd_name = NULL;
> >
> > match = of_match_device(of_flash_match, &dev->dev);
> > if (!match)
>
--
Best Regards,
Artem Bityutskiy
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
next prev parent reply other threads:[~2013-01-28 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-23 11:10 [PATCH] mtd: physmap_of: fix cmdline partition method w/o linux, mtd-name Baruch Siach
[not found] ` <df9da712b775781366ae23aac28ed20849b4e4d3.1356260943.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
2013-01-24 9:05 ` [PATCH] mtd: physmap_of: fix cmdline partition method w/o linux,mtd-name Baruch Siach
[not found] ` <20130124090547.GB7697-MwjkAAnuF3khR1HGirfZ1z4kX+cae0hd@public.gmane.org>
2013-01-28 16:02 ` Artem Bityutskiy [this message]
2013-01-28 16:12 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359388941.7570.17.camel@sauron.fi.intel.com \
--to=artem.bityutskiy-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).