ipmi: Free the address list on module cleanup

Otherwise the memory is leaked.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
Corey Minyard 2018-08-30 13:18:32 -05:00
parent c75c5075e5
commit 36e398d7ab

View File

@ -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();