cxl: fix potential NULL dereference in free_adapter()