Skip to content

Commit 348b10b

Browse files
Dan Carpenterthierryreding
authored andcommitted
hte: Uninitialized variable in hte_ts_get()
The "free_name" variable is sometimes used without being initialized. Fixes: 31ab09b ("drivers: Add hardware timestamp engine (HTE) subsystem") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Dipen Patel <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent e30b64a commit 348b10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hte/hte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ int hte_ts_get(struct device *dev, struct hte_ts_desc *desc, int index)
572572
struct of_phandle_args args;
573573
u32 xlated_id;
574574
int ret;
575-
bool free_name;
575+
bool free_name = false;
576576

577577
if (!desc)
578578
return -EINVAL;

0 commit comments

Comments
 (0)