projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a984f
)
habanalabs: initialize variable before use
author
Oded Gabbay
<ogabbay@kernel.org>
Tue, 20 Oct 2020 15:37:56 +0000
(18:37 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:30 +0000
(10:47 +0200)
GCC 7.3.1
20180303
(Red Hat 7.3.1-5) complains that collective_engine_id
might be used uninitialized.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/command_submission.c
b/drivers/misc/habanalabs/common/command_submission.c
index 8da0526d1d1fceaf9dbba9a3865d3a4ae165574a..26822cfd14919c7c164244b6f79be9354693fa63 100644
(file)
--- a/
drivers/misc/habanalabs/common/command_submission.c
+++ b/
drivers/misc/habanalabs/common/command_submission.c
@@
-941,7
+941,7
@@
static int cs_ioctl_signal_wait(struct hl_fpriv *hpriv, enum hl_cs_type cs_type,
struct hl_cs_compl *sig_waitcs_cmpl;
struct hl_cs *cs;
enum hl_queue_type q_type;
- u32 size_to_copy, q_idx, collective_engine_id;
+ u32 size_to_copy, q_idx, collective_engine_id
= 0
;
u64 signal_seq;
int rc;