pass: thermal: Fix possible null deference in thermal_free() 55/296955/2 accepted/tizen_unified_riscv accepted/tizen/unified/20230808.170202 accepted/tizen/unified/riscv/20230809.013248
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 8 Aug 2023 02:39:33 +0000 (11:39 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 8 Aug 2023 02:49:41 +0000 (11:49 +0900)
commit66b231e457676ea47c413e8b08e7ac871053de35
tree04f7277170b4a499f9a4de5bde82dd2748f03f92
parent393f0d406105a4abfca9089f736b1523fe7317dd
pass: thermal: Fix possible null deference in thermal_free()

When there is no thermal scenario, thermal can not be initialized
and g_thermal is null. Exiting pass from the status, in
thermal_free(), there is null deference. Fix the possible null
deference.

Change-Id: I69ab200ea3d182adc628913d89306db6fe3ebcff
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/thermal/thermal.c