[PATCH] cxl: Destroy afu->contexts_idr on release of an afu

Subsystems: char and misc drivers, the rest

STALE4072d

3 messages, 3 authors, 2015-07-16 · open the first message on its own page

[PATCH] cxl: Destroy afu->contexts_idr on release of an afu

From: Johannes Thumshirn <hidden>
Date: 2015-07-09 07:39:59

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

Signed-off-by: Johannes Thumshirn <redacted>
---
 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

Re: [PATCH] cxl: Destroy afu->contexts_idr on release of an afu

From: Ian Munsie <hidden>
Date: 2015-07-10 01:29:52

Acked-by: Ian Munsie <redacted>

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

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-07-16 09:55:03

On Thu, 2015-09-07 at 07:39:42 UTC, Johannes Thumshirn wrote:
Destroy afu->contexts_idr on release of an afu, reclaiming the allocated
memory.

Signed-off-by: Johannes Thumshirn <redacted>
Acked-by: Ian Munsie <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/bd664f892e3e2b01c791

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help