hte: Uninitialized variable in hte_ts_get()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835 Tested: This is one of a series of patch sets to enable Arm SystemReady IR support in the kernel for NXP i.MX8 platforms. This set updates GPIO support. It has been tested via simple boot tests and by using the kernel GPIO tools to verify pins are being identified and can be used. commit 348b10b075f35828a21bf928edf7f6b1737b1840 Author: Dan Carpenter <dan.carpenter@oracle.com> Date: Fri May 6 17:54:31 2022 +0300 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> (cherry picked from commit 348b10b075f35828a21bf928edf7f6b1737b1840) Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
ba10204417
commit
923e3c739f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue