[PATCH linux dev-4.10 v4 23/31] drivers: fsi: occ: Destroy the ida list on exit

Eddie James eajames at linux.vnet.ibm.com
Fri Oct 6 13:05:45 AEDT 2017


From: "Edward A. James" <eajames at us.ibm.com>

Need to clean up the index list structure.

Signed-off-by: Edward A. James <eajames at us.ibm.com>
Reviewed-by: Andrew Jeffery <andrew at aj.id.au>
---
 drivers/fsi/occ.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/fsi/occ.c b/drivers/fsi/occ.c
index 6e20bb3..6eba40b 100644
--- a/drivers/fsi/occ.c
+++ b/drivers/fsi/occ.c
@@ -798,6 +798,8 @@ static void occ_exit(void)
 	destroy_workqueue(occ_wq);
 
 	platform_driver_unregister(&occ_driver);
+
+	ida_destroy(&occ_ida);
 }
 
 module_init(occ_init);
-- 
1.8.3.1



More information about the openbmc mailing list