提交 35a4d013 编写于 作者: C Corey Minyard 提交者: Yang Yingliang

ipmi: Free the address list on module cleanup

mainline inclusion
from mainline-4.20
commit 36e398d7
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

Otherwise the memory is leaked.
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
Signed-off-by: NWenchao Hao <haowenchao@huawei.com>
Reviewed-by: NMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 4e80312f
...@@ -1970,6 +1970,8 @@ static void cleanup_ipmi_ssif(void) ...@@ -1970,6 +1970,8 @@ static void cleanup_ipmi_ssif(void)
i2c_del_driver(&ssif_i2c_driver); i2c_del_driver(&ssif_i2c_driver);
kfree(ssif_i2c_driver.address_list);
platform_driver_unregister(&ipmi_driver); platform_driver_unregister(&ipmi_driver);
free_ssif_clients(); free_ssif_clients();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册