Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-31 Thread Rafael J. Wysocki
On Wednesday, October 26, 2016 01:00:08 PM Pavel Machek wrote: > > --zhXaljGHf11kAtnf > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue 2016-10-25 11:14:40, Kevin Hilman wrote: > > Colin King

Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-31 Thread Rafael J. Wysocki
On Wednesday, October 26, 2016 01:00:08 PM Pavel Machek wrote: > > --zhXaljGHf11kAtnf > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue 2016-10-25 11:14:40, Kevin Hilman wrote: > > Colin King writes: > >=20 > > >

Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-26 Thread Pavel Machek
On Tue 2016-10-25 11:14:40, Kevin Hilman wrote: > Colin King writes: > > > From: Colin Ian King > > > > The return from of_count_phandle_with_args can be negative, so we > > should avoid kcalloc of a negative count of genpd_power_stat structs

Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-26 Thread Pavel Machek
On Tue 2016-10-25 11:14:40, Kevin Hilman wrote: > Colin King writes: > > > From: Colin Ian King > > > > The return from of_count_phandle_with_args can be negative, so we > > should avoid kcalloc of a negative count of genpd_power_stat structs > > by sanity checking if count is zero or less. > >

Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-25 Thread Kevin Hilman
Colin King writes: > From: Colin Ian King > > The return from of_count_phandle_with_args can be negative, so we > should avoid kcalloc of a negative count of genpd_power_stat structs > by sanity checking if count is zero or less. > >

Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-25 Thread Kevin Hilman
Colin King writes: > From: Colin Ian King > > The return from of_count_phandle_with_args can be negative, so we > should avoid kcalloc of a negative count of genpd_power_stat structs > by sanity checking if count is zero or less. > > Signed-off-by: Colin Ian King Acked-by: Kevin Hilman >

[PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-25 Thread Colin King
From: Colin Ian King The return from of_count_phandle_with_args can be negative, so we should avoid kcalloc of a negative count of genpd_power_stat structs by sanity checking if count is zero or less. Signed-off-by: Colin Ian King ---

[PATCH] PM / Domains: check for negative return from of_count_phandle_with_args

2016-10-25 Thread Colin King
From: Colin Ian King The return from of_count_phandle_with_args can be negative, so we should avoid kcalloc of a negative count of genpd_power_stat structs by sanity checking if count is zero or less. Signed-off-by: Colin Ian King --- drivers/base/power/domain.c | 2 +- 1 file changed, 1