]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: align ioctl uapi structures to 64-bit
authorDan Rapaport <drapaport@habana.ai>
Mon, 30 May 2022 11:11:45 +0000 (14:11 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:21 +0000 (09:09 +0300)
commite7767074b783083301b12aaf0bcce75928b78b46
treedcfdcf4a103cfcdf7125f54c70e1e55e01e81396
parent6a3ffa67b966801aa56d8b658701fb6845148447
habanalabs: align ioctl uapi structures to 64-bit

The compiler is padding the members of the struct to be aligned to
64-bit. The content of the padded bytes is and not zeroed explicitly,
hence might copy undefined data. We add a padding member to the struct
to get a zeroed 64-bit align struct.

Signed-off-by: Dan Rapaport <drapaport@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
include/uapi/misc/habanalabs.h