[PATCH 2/3] ARM: EXYNOS: pm_domain: Fix power domain name initialization

Tomasz Figa tomasz.figa at gmail.com
Sat Sep 8 04:24:33 EDT 2012


Hi Thomas,

On Saturday 08 of September 2012 13:37:59 Thomas Abraham wrote:
> > -               pd->name = np->name;
> > +               pd->pd.name = kstrdup(np->name, GFP_KERNEL);
> > +               pd->name = pd->pd.name;
> 
> Since device tree blob is always resident, why not just use np->name
> instead of copying it to a new place?

The problem is that np->name is const, while pd->pd.name is not.

--
Best regards,
Tomasz Figa




More information about the linux-arm-kernel mailing list