habanalabs: check pad and reserved fields in ioctls
authorfarah kassabri <fkassabri@habana.ai>
Tue, 3 Jan 2023 12:23:55 +0000 (14:23 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:12 +0000 (11:52 +0200)
commit72848de04bbac214f927ec2f7f4e16a20161c169
treef41dd97204675eb6bd1ff11f8ab12362013866fd
parent0970380a7eba3808e12749713ac6acd0ac76d1bc
habanalabs: check pad and reserved fields in ioctls

Make sure all reserved/pad fields in uapi input structures
are set to 0.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/command_submission.c
drivers/accel/habanalabs/common/habanalabs_ioctl.c