From: Lukasz Majewski Date: Fri, 6 Feb 2015 13:07:10 +0000 (+0100) Subject: thermal: exynos: fix: Check if data->tmu_read callback is present before read X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4531fa1684bb883ee01f1a182900b1e15d461b34;p=pandora-kernel.git thermal: exynos: fix: Check if data->tmu_read callback is present before read The exynos_tmu_data() function should on entrance test not only for valid data pointer, but also for data->tmu_read one. It is important, since afterwards it is dereferenced to get temperature code. Signed-off-by: Lukasz Majewski Tested-by: Abhilash Kesavan Signed-off-by: Zhang Rui --- Reading git-diff-tree failed