mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-08 01:36:38 +07:00
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: Johannes Thumshirn <jthumshirn@suse.de> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
b2a02ac65e
commit
bd664f892e
@ -551,6 +551,7 @@ static void cxl_release_afu(struct device *dev)
|
||||
|
||||
pr_devel("cxl_release_afu\n");
|
||||
|
||||
idr_destroy(&afu->contexts_idr);
|
||||
kfree(afu);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user