Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751937AbbGIHj7 (ORCPT ); Thu, 9 Jul 2015 03:39:59 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52788 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887AbbGIHjx (ORCPT ); Thu, 9 Jul 2015 03:39:53 -0400 From: Johannes Thumshirn To: Ian Munsie , Michael Neuling Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Johannes Thumshirn Subject: [PATCH] cxl: Destroy afu->contexts_idr on release of an afu Date: Thu, 9 Jul 2015 09:39:42 +0200 Message-Id: <1436427582-12777-1-git-send-email-jthumshirn@suse.de> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 28 Destroy afu->contexts_idr on release of an afu, reclaiming the allocated memory. Signed-off-by: Johannes Thumshirn --- 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/