summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-08-30 13:18:32 -0500
committerCorey Minyard <cminyard@mvista.com>2018-09-18 16:15:33 -0500
commit36e398d7ab020dc6290cfeff2925d63b81362189 (patch)
tree93b411d88f0bbb8054b651af0b4a3a358c3d7843 /drivers/char
parentc75c5075e5c6c686dde62058d3a95984d22cfb11 (diff)
ipmi: Free the address list on module cleanup
Otherwise the memory is leaked. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_ssif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index 09dcfdd66ed5..1ba787b9de3e 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -1901,6 +1901,8 @@ static void cleanup_ipmi_ssif(void)
i2c_del_driver(&ssif_i2c_driver);
+ kfree(ssif_i2c_driver.address_list);
+
platform_driver_unregister(&ipmi_driver);
free_ssif_clients();