Commit d303e3dd authored by zhang jiao's avatar zhang jiao Committed by Daniel Lezcano
Browse files

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: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20241114084039.42149-1-zhangjiao2@cmss.chinamobile.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent d8afb8cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment