Commit bd664f89 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Michael Ellerman

cxl: Destroy afu->contexts_idr on release of an afu

Destroy afu->contexts_idr on release of an afu, reclaiming the allocated
memory.
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Acked-by: default avatarIan Munsie <imunsie@au1.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent b2a02ac6
...@@ -551,6 +551,7 @@ static void cxl_release_afu(struct device *dev) ...@@ -551,6 +551,7 @@ static void cxl_release_afu(struct device *dev)
pr_devel("cxl_release_afu\n"); pr_devel("cxl_release_afu\n");
idr_destroy(&afu->contexts_idr);
kfree(afu); kfree(afu);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment