habanalabs: make sure cs type is valid in cs_ioctl_signal_wait
authorOded Gabbay <ogabbay@kernel.org>
Mon, 19 Oct 2020 06:06:18 +0000 (09:06 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:30 +0000 (10:47 +0200)
commite716ad3c76c8cf1722f674e43103c74cad85438f
treeafa23e6ed5da195e995ef711b0704a91bb4a46a0
parent3e6229965763129da2105f61cd4e0570ba53cb2b
habanalabs: make sure cs type is valid in cs_ioctl_signal_wait

Although we get a valid cs type from the callee, in case new values
will be added in the future, it is best to check the expected values
in that function.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c