Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-07-16 16:12:15 +0200
committerTakashi Iwai <tiwai@suse.de>2019-07-16 16:12:17 +0200
commit0f2445e311653b861c9159a89d7cc01225268fb4 (patch)
treebbfd516fd5ee3b09f09260d01515b0eb81fa85a8
parent31d111acbd59879979ad315087b8d44f4d1ffa22 (diff)
mfd: intel-lpss: Release IDA resources (bsc#1051510).
-rw-r--r--patches.drivers/mfd-intel-lpss-Release-IDA-resources.patch36
-rw-r--r--series.conf1
2 files changed, 37 insertions, 0 deletions
diff --git a/patches.drivers/mfd-intel-lpss-Release-IDA-resources.patch b/patches.drivers/mfd-intel-lpss-Release-IDA-resources.patch
new file mode 100644
index 0000000000..9fe345118f
--- /dev/null
+++ b/patches.drivers/mfd-intel-lpss-Release-IDA-resources.patch
@@ -0,0 +1,36 @@
+From 02f36911c1b41fcd8779fa0c135aab0554333fa5 Mon Sep 17 00:00:00 2001
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Date: Fri, 21 Jun 2019 15:56:31 +0300
+Subject: [PATCH] mfd: intel-lpss: Release IDA resources
+Git-commit: 02f36911c1b41fcd8779fa0c135aab0554333fa5
+Patch-mainline: v5.3-rc1
+References: bsc#1051510
+
+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 <andriy.shevchenko@linux.intel.com>
+Signed-off-by: Lee Jones <lee.jones@linaro.org>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ 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 fc6aa4c50144..2ba6df9d83af 100644
+--- a/drivers/mfd/intel-lpss.c
++++ b/drivers/mfd/intel-lpss.c
+@@ -546,6 +546,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.16.4
+
diff --git a/series.conf b/series.conf
index f2e21216fe..49667091c0 100644
--- a/series.conf
+++ b/series.conf
@@ -22923,6 +22923,7 @@
patches.drm/drm-meson-Add-support-for-XBGR8888-ABGR8888-formats.patch
patches.drm/drm-rockchip-Properly-adjust-to-a-true-clock-in-adju.patch
patches.drm/drm-msm-a3xx-remove-TPL1-regs-from-snapshot.patch
+ patches.drivers/mfd-intel-lpss-Release-IDA-resources.patch
# powerpc/linux next
patches.arch/powerpc-pseries-dlpar-Fix-a-missing-check-in-dlpar_p.patch