Re: [PATCH v3 3/4] driver property: constify property arrays values

2017-02-02 Thread Rafael J. Wysocki
On Wednesday, February 01, 2017 03:30:03 PM Joe Perches wrote: > On Wed, 2017-02-01 at 09:31 -0800, Dmitry Torokhov wrote: > > Data that is fed into property arrays should not be modified, so let's mark > > relevant pointers as const. This will allow us making source arrays as > > const/__initconst

Re: [PATCH v3 3/4] driver property: constify property arrays values

2017-02-02 Thread Mika Westerberg
On Wed, Feb 01, 2017 at 09:31:24AM -0800, Dmitry Torokhov wrote: > Data that is fed into property arrays should not be modified, so let's mark > relevant pointers as const. This will allow us making source arrays as > const/__initconst. > > Also fix memory leaks on errors in property_entry_copy().

Re: [PATCH v3 3/4] driver property: constify property arrays values

2017-02-01 Thread Joe Perches
On Wed, 2017-02-01 at 09:31 -0800, Dmitry Torokhov wrote: > Data that is fed into property arrays should not be modified, so let's mark > relevant pointers as const. This will allow us making source arrays as > const/__initconst. trivia: > diff --git a/drivers/base/property.c b/drivers/base/prope