[PATCH 6.4 227/239] thermal: of: fix double-free on unregistration