* [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
* Re: [PATCH] cxl: Destroy afu->contexts_idr on release of an afu
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
1 sibling, 0 replies; 3+ messages in thread
From: Ian Munsie @ 2015-07-10 1:28 UTC (permalink / raw)
To: Johannes Thumshirn; +Cc: Michael Neuling, linuxppc-dev, linux-kernel
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cxl: Destroy afu->contexts_idr on release of an afu
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
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2015-07-16 9:54 UTC (permalink / raw)
To: Johannes Thumshirn, Ian Munsie, Michael Neuling
Cc: linuxppc-dev, linux-kernel, Johannes Thumshirn
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 <jthumshirn@suse.de>
> Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/bd664f892e3e2b01c791
cheers
^ permalink raw reply [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).