[PATCH 4.14 212/267] intel_th: Fix a double put_device() in error path