Commit cf008f5a authored by Oded Gabbay's avatar Oded Gabbay

habanalabs: make sure variable is set before used

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent f2d9ec87
...@@ -3345,8 +3345,8 @@ static int hl_interrupt_wait_ioctl(struct hl_fpriv *hpriv, void *data) ...@@ -3345,8 +3345,8 @@ static int hl_interrupt_wait_ioctl(struct hl_fpriv *hpriv, void *data)
struct hl_user_interrupt *interrupt; struct hl_user_interrupt *interrupt;
union hl_wait_cs_args *args = data; union hl_wait_cs_args *args = data;
u32 status = HL_WAIT_CS_STATUS_BUSY; u32 status = HL_WAIT_CS_STATUS_BUSY;
u64 timestamp = 0;
int rc, int_idx; int rc, int_idx;
u64 timestamp;
prop = &hdev->asic_prop; prop = &hdev->asic_prop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment