diff options
author | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-01-02 15:29:42 +0000 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-01-17 15:09:22 +0800 |
commit | 6b2aa51d698492e8dc0a0ce6ce5b3193ccaec269 (patch) | |
tree | 2f34c327e3fb92f4851bb0c1dbcddea2db9670d8 /kernel | |
parent | 923e0b1e8dbe0939d9fc41c226dfc5d53884d8c6 (diff) | |
download | linux-6b2aa51d698492e8dc0a0ce6ce5b3193ccaec269.tar.gz linux-6b2aa51d698492e8dc0a0ce6ce5b3193ccaec269.tar.bz2 linux-6b2aa51d698492e8dc0a0ce6ce5b3193ccaec269.zip |
thermal: check for invalid trip setup when registering thermal device
This patch adds an extra check in the data structure while registering
a thermal device. The check is to avoid registering zones with a number
of trips greater than zero, but with no .get_trip_temp nor .get_trip_type
callbacks. Receiving such data structure may end in wrong data access.
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions