thermal: validate input parameters
authorThomas Sujith <sujith.thomas@intel.com>
Fri, 15 Feb 2008 05:58:50 +0000 (00:58 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 15 Feb 2008 23:21:30 +0000 (18:21 -0500)
commitc751670902c3dd9abbed279170a832e6a1e6cf94
tree784cf0161d60a3bd4c1b6a6d160c9657b717e83a
parent101142c37be8e5af9b847860219217e6b958c739
thermal: validate input parameters

Added sanity check to make sure that thermal zone
and cooling device exists.

Signed-off-by: Thomas Sujith <sujith.thomas@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal.c