Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1180492 > unrolled thread

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

Started byJohannes Thumshirn <jthumshirn@suse.de>
First post2015-07-09 09:50 +0200
Last post2015-07-10 03:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] cxl: Destroy afu->contexts_idr on release of an afu Johannes Thumshirn <jthumshirn@suse.de> - 2015-07-09 09:50 +0200
    Re: [PATCH] cxl: Destroy afu->contexts_idr on release of an afu Ian Munsie <imunsie@au1.ibm.com> - 2015-07-10 03:30 +0200

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

FromJohannes Thumshirn <jthumshirn@suse.de>
Date2015-07-09 09:50 +0200
Subject[PATCH] cxl: Destroy afu->contexts_idr on release of an afu
Message-ID<pKeKL-5N6-15@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1181152

FromIan Munsie <imunsie@au1.ibm.com>
Date2015-07-10 03:30 +0200
Message-ID<pKviy-7Kt-7@gated-at.bofh.it>
In reply to#1180492
Acked-by: Ian Munsie <imunsie@au1.ibm.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web