summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>2024-11-14 16:40:39 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2024-11-15 14:29:03 +0100
commitd303e3dd8d4648f2a1bb19944d4fb1c4a5030354 (patch)
tree05708051cf645f2e64f5dc7242899254efd41a2f /drivers/thermal
parentd8afb8cc8bbab13f97cd76aaf716de97f222cd71 (diff)
downloadlinux-d303e3dd8d4648f2a1bb19944d4fb1c4a5030354.tar.gz
linux-d303e3dd8d4648f2a1bb19944d4fb1c4a5030354.tar.bz2
linux-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 <zhangjiao2@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241114084039.42149-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions