提交 f098a045 编写于 作者: G Geliang Tang 提交者: Sebastian Reichel

hsi: fix double kfree

When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.

Fixes: a2aa2473 ("HSI: Add common DT binding for HSI client devices")
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 c616ac28
无相关合并请求
......@@ -300,7 +300,6 @@ static void hsi_add_client_from_dt(struct hsi_port *port,
if (device_register(&cl->device) < 0) {
pr_err("hsi: failed to register client: %s\n", name);
put_device(&cl->device);
goto err3;
}
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册