]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/misc/cxl/pci.c
cxl: Allocate and release the SPA with the AFU
[linux-beck.git] / drivers / misc / cxl / pci.c
index 1d314f1f95fed4c4702419d6cfb40f50781a027c..dc26cdd653ad4a585bee9ebb23c3202103d14d8f 100644 (file)
@@ -552,6 +552,8 @@ static void cxl_release_afu(struct device *dev)
        pr_devel("cxl_release_afu\n");
 
        idr_destroy(&afu->contexts_idr);
+       cxl_release_spa(afu);
+
        kfree(afu);
 }