habanalabs: fix NULL dereference on cs timeout
authorYuri Nudelman <ynudelman@habana.ai>
Tue, 14 Jun 2022 12:14:20 +0000 (15:14 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:23 +0000 (09:09 +0300)
commita18997770159b9b48a5c20630223e4f9d3e2bdb5
tree5e58d4bb6c3f400dc1c774d594dc99f8ddaae948
parent01622098aeb05a5efbb727199bbc2a4653393255
habanalabs: fix NULL dereference on cs timeout

Device descriptor is accessed before an assignment

Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c