Thermal_Framework-Fix_crash_during_hwmon_unregister
authorDurgadoss R <durgadoss.r@intel.com>
Wed, 19 Jan 2011 21:10:56 +0000 (02:40 +0530)
committerLen Brown <len.brown@intel.com>
Thu, 3 Mar 2011 00:47:57 +0000 (19:47 -0500)
This patch fixes the following bug:
The thermal framework creates a temp*_crit interface, only when
the get_crit_temp pointer is defined. But during the _unregister_
path, without checking for the function definition, it is trying to
remove the temp*_crit interface.

Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

No differences found