]> Pileus Git - ~andy/linux/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:23:21 +0000 (08:23 +0800)
commitc072fed95c9855a920c114d7fa3351f0f54ea06e
treeeefe9fd7ae447aea14a9c8c6341c3479d968df2b
parenta4b6fec977020a508ff04b05f0fa01221a4ecf29
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