]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: core: prevent zones with no types to be registered
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:08:39 +0000 (21:08 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
commitf8389eafc4b99adcb70b0a6c4f614c67bd4f82fd
tree4a0a635b5402c8c272a6df32f63081e52b7b2119
parent2193a9fc5b70f9a1e43bc5cee8148b26d2652f5f
thermal: core: prevent zones with no types to be registered

There are APIs that rely on tz->type. This patch
prevent thermal zones without it to be registered.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c