diff options
author | Bryan Brattlof <[email protected]> | 2022-05-25 16:36:17 -0500 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2022-07-28 17:29:47 +0200 |
commit | 99a049aace3257cf7644c3bbf67cb1a655248cc2 (patch) | |
tree | d0bb3937888bb2f2224f69ad8353c32b389276d2 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 4102c4042a33c682021683ec26c2dca3fd9d7cc2 (diff) |
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Bryan Brattlof <[email protected]>
Reviewed-by: Keerthy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions