RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
t; Ingo Molnar; Varun Koyyalagunta; linux-kernel@vger.kernel.org > Subject: RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it > is NULL > > Hi, > > > -Original Message- > > From: Pavel Machek [mailto:pa...@ucw.cz] > > Sent: Sunday, J

RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
t; Ingo Molnar; Varun Koyyalagunta; linux-kernel@vger.kernel.org > Subject: RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it > is NULL > > Hi, > > > -Original Message- > > From: Pavel Machek [mailto:pa...@ucw.cz] > > Sent: Sunday, J

RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
t; Thomas Gleixner; > Ingo Molnar; Varun Koyyalagunta; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it > is NULL > > On Sun 2016-06-26 00:18:30, Chen Yu wrote: > > frozen_cpus might be NULL if the allocation in prev

RE: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen, Yu C
t; Thomas Gleixner; > Ingo Molnar; Varun Koyyalagunta; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it > is NULL > > On Sun 2016-06-26 00:18:30, Chen Yu wrote: > > frozen_cpus might be NULL if the allocation in prev

Re: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Pavel Machek
On Sun 2016-06-26 00:18:30, Chen Yu wrote: > frozen_cpus might be NULL if the allocation in previous > alloc_frozen_cpus failed, when CONFIG_CPUMASK_OFFSTACK > is set. > > This patch avoid accessing this cpumask if it is NULL. > > Signed-off-by: Chen Yu > --- >

Re: [PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Pavel Machek
On Sun 2016-06-26 00:18:30, Chen Yu wrote: > frozen_cpus might be NULL if the allocation in previous > alloc_frozen_cpus failed, when CONFIG_CPUMASK_OFFSTACK > is set. > > This patch avoid accessing this cpumask if it is NULL. > > Signed-off-by: Chen Yu > --- > kernel/cpu.c | 4 > 1 file

[PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen Yu
frozen_cpus might be NULL if the allocation in previous alloc_frozen_cpus failed, when CONFIG_CPUMASK_OFFSTACK is set. This patch avoid accessing this cpumask if it is NULL. Signed-off-by: Chen Yu --- kernel/cpu.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 1/4][RFC v2] PM / sleep: Avoid accessing frozen_cpus if it is NULL

2016-06-25 Thread Chen Yu
frozen_cpus might be NULL if the allocation in previous alloc_frozen_cpus failed, when CONFIG_CPUMASK_OFFSTACK is set. This patch avoid accessing this cpumask if it is NULL. Signed-off-by: Chen Yu --- kernel/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/cpu.c