diff
<     struct thermal_debugfs *thermal_dbg = cdev->debugfs;
---
>     struct thermal_debugfs *thermal_dbg;
>     BUG_ON(!cdev); // Kernel macro that crashes the system if the condition is true
>     thermal_dbg = cdev->debugfs;
