From: Sachin Kamat Date: Thu, 27 Sep 2012 10:50:38 +0000 (+0530) Subject: thermal: Exynos: Fix NULL pointer dereference in exynos_unregister_thermal() X-Git-Tag: v3.7-rc1~12^2^3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c072fed95c9855a920c114d7fa3351f0f54ea06e;p=pandora-kernel.git 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 --- Reading git-diff-tree failed