Re: [PATCH 3/3] thermal: core: fix: Check return code of the ->get_max_state() callback

2014-10-09 Thread Lukasz Majewski
Hi Zhang, > On Fri, 2014-10-03 at 12:40 +0200, Lukasz Majewski wrote: > > Hi Eduardo, Rui, > > > > > On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: > > > > Without this check it was possible to execute cooling device > > > > binding code even when wrong max cooling state was

Re: [PATCH 3/3] thermal: core: fix: Check return code of the -get_max_state() callback

2014-10-09 Thread Lukasz Majewski
Hi Zhang, On Fri, 2014-10-03 at 12:40 +0200, Lukasz Majewski wrote: Hi Eduardo, Rui, On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read.

Re: [PATCH 3/3] thermal: core: fix: Check return code of the ->get_max_state() callback

2014-10-08 Thread Zhang Rui
On Fri, 2014-10-03 at 12:40 +0200, Lukasz Majewski wrote: > Hi Eduardo, Rui, > > > On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: > > > Without this check it was possible to execute cooling device > > > binding code even when wrong max cooling state was read. > > > > > >

Re: [PATCH 3/3] thermal: core: fix: Check return code of the -get_max_state() callback

2014-10-08 Thread Zhang Rui
On Fri, 2014-10-03 at 12:40 +0200, Lukasz Majewski wrote: Hi Eduardo, Rui, On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read. Signed-off-by: Lukasz

Re: [PATCH 3/3] thermal: core: fix: Check return code of the ->get_max_state() callback

2014-10-03 Thread Lukasz Majewski
Hi Eduardo, Rui, > On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: > > Without this check it was possible to execute cooling device > > binding code even when wrong max cooling state was read. > > > > Signed-off-by: Lukasz Majewski > > Acked-by: Eduardo Valentin > > Rui, are

Re: [PATCH 3/3] thermal: core: fix: Check return code of the -get_max_state() callback

2014-10-03 Thread Lukasz Majewski
Hi Eduardo, Rui, On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Acked-by: Eduardo Valentin

Re: [PATCH 3/3] thermal: core: fix: Check return code of the ->get_max_state() callback

2014-10-02 Thread Eduardo Valentin
On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: > Without this check it was possible to execute cooling device binding code > even when wrong max cooling state was read. > > Signed-off-by: Lukasz Majewski Acked-by: Eduardo Valentin Rui, are you taking these patches? Do you

Re: [PATCH 3/3] thermal: core: fix: Check return code of the -get_max_state() callback

2014-10-02 Thread Eduardo Valentin
On Wed, Sep 24, 2014 at 10:27:12AM +0200, Lukasz Majewski wrote: Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Acked-by: Eduardo Valentin edubez...@gmail.com Rui,

[PATCH 3/3] thermal: core: fix: Check return code of the ->get_max_state() callback

2014-09-24 Thread Lukasz Majewski
Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read. Signed-off-by: Lukasz Majewski --- drivers/thermal/thermal_core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c

[PATCH 3/3] thermal: core: fix: Check return code of the -get_max_state() callback

2014-09-24 Thread Lukasz Majewski
Without this check it was possible to execute cooling device binding code even when wrong max cooling state was read. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- drivers/thermal/thermal_core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git