thermal: imx: Fix possible NULL dereference.
authorShailendra Verma <shailendra.v@samsung.com>
Mon, 30 Jan 2017 05:04:58 +0000 (10:34 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 19 Feb 2017 01:27:36 +0000 (17:27 -0800)
commit8b051ec37c93b28e1f1cac4c9677ff88e56930ff
tree5aba94f1f64819c0b330bc800223bcd699d14b22
parentef9b36d9101eb2d5827699a4e969c719fb8812c0
thermal: imx: Fix possible NULL dereference.

of_device_get_match_data could return NULL, and so can cause
a NULL pointer dereference later.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c