Re: [PATCH] thermal: thermal_of: fix error return code of thermal_of_populate_bind_params()

2021-03-10 Thread Jia-Ju Bai
On 2021/3/10 20:02, Daniel Lezcano wrote: On 06/03/2021 15:11, Jia-Ju Bai wrote: When kcalloc() fails and __tcbp is NULL, no error return code of thermal_of_populate_bind_params() is assigned. To fix this bug, ret is assigned with -ENOMEM in this case. Reported-by: TOTE Robot

Re: [PATCH] thermal: thermal_of: fix error return code of thermal_of_populate_bind_params()

2021-03-10 Thread Daniel Lezcano
On 06/03/2021 15:11, Jia-Ju Bai wrote: > When kcalloc() fails and __tcbp is NULL, no error return code of > thermal_of_populate_bind_params() is assigned. > To fix this bug, ret is assigned with -ENOMEM in this case. > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai > --- >

[PATCH] thermal: thermal_of: fix error return code of thermal_of_populate_bind_params()

2021-03-06 Thread Jia-Ju Bai
When kcalloc() fails and __tcbp is NULL, no error return code of thermal_of_populate_bind_params() is assigned. To fix this bug, ret is assigned with -ENOMEM in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/thermal/thermal_of.c | 4 +++- 1 file changed, 3