diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-05-06 16:54:31 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-05-20 15:54:41 +0200 |
commit | 348b10b075f35828a21bf928edf7f6b1737b1840 (patch) | |
tree | 9e405528b02901fbb968d86ba939ba1712f29c02 /drivers/hte | |
parent | hte: Fix off by one in hte_push_ts_ns() (diff) | |
download | linux-348b10b075f35828a21bf928edf7f6b1737b1840.tar.xz linux-348b10b075f35828a21bf928edf7f6b1737b1840.zip |
hte: Uninitialized variable in hte_ts_get()
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>
Diffstat (limited to 'drivers/hte')
-rw-r--r-- | drivers/hte/hte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hte/hte.c b/drivers/hte/hte.c index a14c5bf290ff..7c3b4476f890 100644 --- 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; |