Home
last modified time | relevance | path

Searched hist:"99 a049aace3257cf7644c3bbf67cb1a655248cc2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/thermal/
H A Dk3_j72xx_bandgap.cdiff 99a049aace3257cf7644c3bbf67cb1a655248cc2 Wed May 25 16:36:17 CDT 2022 Bryan Brattlof <bb@ti.com> thermal/drivers/k3_j72xx_bandgap: Fix ref_table memory leak during probe

If an error occurs in the k3_j72xx_bandgap_probe() function the memory
allocated to the 'ref_table' will not be released.

Add a err_free_ref_table step to the error path to free 'ref_table'

Fixes: 72b3fc61c752 ("thermal: k3_j72xx_bandgap: Add the bandgap driver support")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Link: https://lore.kernel.org/r/20220525213617.30002-1-bb@ti.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>