Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp463995ybl; Tue, 28 Jan 2020 06:22:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwlXrPDd81zAbO8wwiDLRW/IjGrBqVvBDg/SBFv5a21vJWctielawNjJj4LNho44opqzSzw X-Received: by 2002:aca:54cc:: with SMTP id i195mr2866932oib.126.1580221357346; Tue, 28 Jan 2020 06:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221357; cv=none; d=google.com; s=arc-20160816; b=jcQCuSg8KQVw8ZqQoVDg3PXBmrkPd3fyuiwzqCAMc/PhVf/QZQwU/pEWI5s7ckESFK HqzuPIUlz2U7/oT63BEhZTi9gfRJdCDwSU0VWRTwYztd1vVBRmd00nq7TMQkrPOOpxON Y9STE0SUgNx2E27IJJ9YgaWKOkK0ell8hUNp9DOjxXQYth+szldSW9wWNVuNi/tYo0Cd oxR8vFctAdNO16BDIo/hNS07CHxRTFxPMrqL9fOm3MzgtFSFSnlFAfTvu/hNzezHIz0w T/nm8WJkoCAQsnuj1JPwAcDpj002spXg2gZncREZ/2n+6dgdLY1dP7bMuvl1gh5CPdXK UQBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dBntJ/t4d9v9l28MFLr3ZdXNuXxrd/ba9e1LGUvqFBs=; b=IAimG4agDq9a4mjcHAVovd3WiHLj9H1puea/yUUil5/7mHZWNtOvmYOY6jeLYuqqvx XiQ3yjNZeRxWU79rJgKbmhJnsx/Gv0Z34hXRfV/MJ6jSj+mAZiYFAS6PzjQIgRhJAz2i 3B7pK+cp3b9vNDCtNmKq9BOkD0OqCtF8Au12A8EWxLGcMogc/5bzdyHdkHNRvBTxShiJ zjW5bHvpFLctS23UXMPGCe9JKNojkSxxn+cSOwvPdpdtHGzwtptSUQSaR/f4Z8iT8snq TsMZnVN88HVwrWZOadrYUR41vg/4syFKfCOKaZ5l6AXyYqC9fktoZgfvKUflXcc3YLne 4sdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CyyOO+nk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si3767467otq.115.2020.01.28.06.22.25; Tue, 28 Jan 2020 06:22:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CyyOO+nk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730432AbgA1OV2 (ORCPT + 99 others); Tue, 28 Jan 2020 09:21:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:46768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731272AbgA1OV0 (ORCPT ); Tue, 28 Jan 2020 09:21:26 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BC7124681; Tue, 28 Jan 2020 14:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221285; bh=fbz50UvltV7L5z12zkYmwND53mguKXWQP2DHuEXL1A0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CyyOO+nknEpeRNPTNpK5zCQ8306YyoP8fSBSJlj/7dhYtrwiFBTI9yAOlGri4QV6a FpThsW0ZBMmBdoOAxfnKzZHvcDI8IO1ueGb3IoP5kMcvRkBrak11yUJz7vSfM4qAJ3 kXWXwF5JOXfabTyZbeCy8spkvNazPVTur0AHAwn4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Lee Jones , Sasha Levin Subject: [PATCH 4.9 164/271] mfd: intel-lpss: Release IDA resources Date: Tue, 28 Jan 2020 15:05:13 +0100 Message-Id: <20200128135904.792844046@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit 02f36911c1b41fcd8779fa0c135aab0554333fa5 ] ida instances allocate some internal memory for ->free_bitmap in addition to the base 'struct ida'. Use ida_destroy() to release that memory at module_exit(). Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices") Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/intel-lpss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c index 22dd8c055048c..71cecd7aeea0c 100644 --- a/drivers/mfd/intel-lpss.c +++ b/drivers/mfd/intel-lpss.c @@ -533,6 +533,7 @@ module_init(intel_lpss_init); static void __exit intel_lpss_exit(void) { + ida_destroy(&intel_lpss_devid_ida); debugfs_remove(intel_lpss_debugfs); } module_exit(intel_lpss_exit); -- 2.20.1