From: Corey Minyard cminyard@mvista.com
mainline inclusion from mainline-4.20 commit 36e398d7ab020dc6290cfeff2925d63b81362189 category: bugfix bugzilla: NA CVE: NA
-------------------------------------------------
Otherwise the memory is leaked.
Signed-off-by: Corey Minyard cminyard@mvista.com Signed-off-by: Wenchao Hao haowenchao@huawei.com Reviewed-by: Miaohe Lin linmiaohe@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/char/ipmi/ipmi_ssif.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index f1c9b71ac7b6c..c91841843388d 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -1970,6 +1970,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();