Skip to content
Commit c072fed9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Zhang Rui
Browse files

thermal: Exynos: Fix NULL pointer dereference in exynos_unregister_thermal()



exynos_unregister_thermal() is functional only when 'th_zone' is not
NULL (ensured by the NULL checks). However, in the event it is NULL, it
gets dereferenced in the for loop. This patch fixes this issue.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
parent a4b6fec9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment