未验证 提交 12a5d46e 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!1104 [sync] PR-1089: power: supply: bq24190: Fix use after free bug in...

!1104 [sync] PR-1089:  power: supply: bq24190: Fix use after free bug in bq24190_remove due to race condition

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/1089 
 
PR sync from:  Zhao Wenhui <zhaowenhui8@huawei.com>
 https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/thread/FTJHXWWTIUDTIGLFJ4DL6XSYWRZEPLE4/ 
 
 
Link:https://gitee.com/openeuler/kernel/pulls/1104 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
...@@ -1849,6 +1849,7 @@ static int bq24190_remove(struct i2c_client *client) ...@@ -1849,6 +1849,7 @@ static int bq24190_remove(struct i2c_client *client)
struct bq24190_dev_info *bdi = i2c_get_clientdata(client); struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
int error; int error;
cancel_delayed_work_sync(&bdi->input_current_limit_work);
error = pm_runtime_get_sync(bdi->dev); error = pm_runtime_get_sync(bdi->dev);
if (error < 0) { if (error < 0) {
dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error); dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册