linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cxl: Destroy afu->contexts_idr on release of an afu
@ 2015-07-09  7:39 Johannes Thumshirn
  2015-07-10  1:28 ` Ian Munsie
  2015-07-16  9:54 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2015-07-09  7:39 UTC (permalink / raw)
  To: Ian Munsie, Michael Neuling
  Cc: linuxppc-dev, linux-kernel, Johannes Thumshirn

Destroy afu->contexts_idr on release of an afu, reclaiming the allocated
memory.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/misc/cxl/pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index c68ef58..16b8e75a 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -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);
 }
 
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-16  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09  7:39 [PATCH] cxl: Destroy afu->contexts_idr on release of an afu Johannes Thumshirn
2015-07-10  1:28 ` Ian Munsie
2015-07-16  9:54 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).