Messages in this thread | | | Subject | Re: [PATCH v2] thermal: ti-soc-thermal: avoid dereferencing ERR_PTR | From | Daniel Lezcano <> | Date | Wed, 29 Apr 2020 16:46:31 +0200 |
| |
On 24/04/2020 18:19, Sudip Mukherjee wrote: > On error the function ti_bandgap_get_sensor_data() returns the error > code in ERR_PTR() but we only checked if the return value is NULL or > not. And, so we can dereference an error code inside ERR_PTR. > While at it, convert a check to IS_ERR_OR_NULL. > > Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> > ---
Applied thanks
-- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
| |