[PATCH 6.10 218/273] thermal/debugfs: Fix the NULL vs IS_ERR() confusion in debugfs_create_dir()