[PATCH] thermal: Exynos: Fix NULL pointer dereference in exynos_unregister_thermal()

2012-09-27 Thread Sachin Kamat
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: Sachin Kamat --- drivers/thermal/exynos_thermal.c |7 +-- 1 files

[PATCH] thermal: Exynos: Fix NULL pointer dereference in exynos_unregister_thermal()

2012-09-27 Thread Sachin Kamat
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: Sachin Kamat sachin.ka...@linaro.org --- drivers/thermal/exynos_thermal.c |