]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
thermal: exynos: fix: Check if data->tmu_read callback is present before read
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 6 Feb 2015 13:07:10 +0000 (14:07 +0100)
committerZhang Rui <rui.zhang@intel.com>
Fri, 20 Feb 2015 13:57:02 +0000 (21:57 +0800)
commit4531fa1684bb883ee01f1a182900b1e15d461b34
tree835ca67f5df7664fd87b6b25ef9f1feb73d1a1e6
parent3d883483dc0a7261d73d8b1857a7387a1dd99eee
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 <l.majewski@samsung.com>
Tested-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/samsung/exynos_tmu.c