]> git.ipfire.org Git - thirdparty/linux.git/commit
habanalabs: make sure variable is set before used
authorOded Gabbay <ogabbay@kernel.org>
Mon, 4 Jul 2022 08:53:57 +0000 (11:53 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000 (09:09 +0300)
commitcf008f5acb9047891f7fa7c234bd838120fe1b50
tree8d240fa8eb2db24f006fdf9e82847bb67c78ec94
parentf2d9ec872c5db258ba8998b6b4c17866fca95ada
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: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c