提交 348b10b0 编写于 作者: D Dan Carpenter 提交者: Thierry Reding

hte: Uninitialized variable in hte_ts_get()

The "free_name" variable is sometimes used without being initialized.

Fixes: 31ab09b4 ("drivers: Add hardware timestamp engine (HTE) subsystem")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NDipen Patel <dipenp@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 e30b64a3
......@@ -572,7 +572,7 @@ int hte_ts_get(struct device *dev, struct hte_ts_desc *desc, int index)
struct of_phandle_args args;
u32 xlated_id;
int ret;
bool free_name;
bool free_name = false;
if (!desc)
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册