drivers: thermal: add check when unregistering cpu cooling
authorEduardo Valentin <eduardo.valentin@ti.com>
Thu, 15 Aug 2013 14:54:46 +0000 (10:54 -0400)
committerEduardo Valentin <eduardo.valentin@ti.com>
Tue, 3 Sep 2013 13:10:34 +0000 (09:10 -0400)
This patch avoids NULL pointer accesses while unregistering
cpu cooling devices, in case a NULL pointer is received.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>

No differences found