]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thermal: Exynos: Fix NULL pointer dereference in exynos_unregister_thermal()
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 27 Sep 2012 10:50:38 +0000 (16:20 +0530)
committerZhang Rui <rui.zhang@intel.com>
Fri, 28 Sep 2012 00:22:15 +0000 (08:22 +0800)
commitf224ce9934831857a8bfb0915c36a4f994ae76ea
tree83642d964d1c3bb4ba0ec4b8abe6bed2960bfa0e
parent76bb4ad132fdfb30383f035e511a32a183503406
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: Sachin Kamat <sachin.kamat@linaro.org>
drivers/thermal/exynos_thermal.c