[PATCH linux dev-4.10 v4 10/31] drivers: fsi: sbefifo: destroy the ida list on exit
Eddie James
eajames at linux.vnet.ibm.com
Fri Oct 6 13:05:32 AEDT 2017
From: "Edward A. James" <eajames at us.ibm.com>
Need to clean this up.
Signed-off-by: Edward A. James <eajames at us.ibm.com>
Reviewed-by: Andrew Jeffery <andrew at aj.id.au>
---
drivers/fsi/fsi-sbefifo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
index 60b133d..0ff5209 100644
--- a/drivers/fsi/fsi-sbefifo.c
+++ b/drivers/fsi/fsi-sbefifo.c
@@ -947,6 +947,8 @@ static int sbefifo_init(void)
static void sbefifo_exit(void)
{
fsi_driver_unregister(&sbefifo_drv);
+
+ ida_destroy(&sbefifo_ida);
}
module_init(sbefifo_init);
--
1.8.3.1
More information about the openbmc
mailing list