projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d9ec8
)
habanalabs: make sure variable is set before used
author
Oded Gabbay
<ogabbay@kernel.org>
Mon, 4 Jul 2022 08:53:57 +0000
(11:53 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000
(09:09 +0300)
timestamp could be unset in both _hl_interrupt_wait_ioctl() and
_hl_interrupt_wait_ioctl_user_addr() so it is better to explicitly
initialize it to 0 when declaring it.
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
941f1ff
..
90a4574
100644
(file)
--- a/
drivers/misc/habanalabs/common/command_submission.c
+++ b/
drivers/misc/habanalabs/common/command_submission.c
@@
-3345,8
+3345,8
@@
static int hl_interrupt_wait_ioctl(struct hl_fpriv *hpriv, void *data)
struct hl_user_interrupt *interrupt;
union hl_wait_cs_args *args = data;
u32 status = HL_WAIT_CS_STATUS_BUSY;
+ u64 timestamp = 0;
int rc, int_idx;
- u64 timestamp;
prop = &hdev->asic_prop;