diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-08-30 20:18:32 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-09-18 23:15:33 +0200 |
commit | 36e398d7ab020dc6290cfeff2925d63b81362189 (patch) | |
tree | 93b411d88f0bbb8054b651af0b4a3a358c3d7843 /drivers/char | |
parent | ipmi: Don't leave holes in the I2C address list in the ssif driver (diff) | |
download | linux-36e398d7ab020dc6290cfeff2925d63b81362189.tar.xz linux-36e398d7ab020dc6290cfeff2925d63b81362189.zip |
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.c | 2 |
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(); |