Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}