projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30b64a
)
hte: Uninitialized variable in hte_ts_get()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 6 May 2022 14:54:31 +0000
(17:54 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Fri, 20 May 2022 13:54:41 +0000
(15:54 +0200)
The "free_name" variable is sometimes used without being initialized.
Fixes: 31ab09b42188 ("drivers: Add hardware timestamp engine (HTE) subsystem")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/hte/hte.c
patch
|
blob
|
history
diff --git
a/drivers/hte/hte.c
b/drivers/hte/hte.c
index a14c5bf290ff210eea690ae277a8d24414ecfbfb..7c3b4476f89021212b4f61504a194ae5b52fe5a7 100644
(file)
--- a/
drivers/hte/hte.c
+++ b/
drivers/hte/hte.c
@@
-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;