Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johannes Thumshirn and committed by
Michael Ellerman
bd664f89 b2a02ac6

+1
+1
drivers/misc/cxl/pci.c
··· 551 551 552 552 pr_devel("cxl_release_afu\n"); 553 553 554 + idr_destroy(&afu->contexts_idr); 554 555 kfree(afu); 555 556 } 556 557