diff options
| author | zhang jiao <[email protected]> | 2024-11-14 08:40:39 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2024-11-15 13:29:03 +0000 |
| commit | d303e3dd8d4648f2a1bb19944d4fb1c4a5030354 (patch) | |
| tree | 05708051cf645f2e64f5dc7242899254efd41a2f /drivers/platform/x86/intel/pmt/class.c | |
| parent | thermal/drivers/k3_j72xx_bandgap: Simplify code in k3_bgp_read_temp() (diff) | |
| download | kernel-d303e3dd8d4648f2a1bb19944d4fb1c4a5030354.tar.gz kernel-d303e3dd8d4648f2a1bb19944d4fb1c4a5030354.zip | |
tools/thermal: Fix common realloc mistake
If the 'realloc' fails, the thermal zones pointer is set to NULL. This
makes all thermal zones references which were previously successfully
initialized to be lost.
[dlezcano] : Fixed indentation
Signed-off-by: zhang jiao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
