Commit 2acd21cd authored by Dan Rapaport's avatar Dan Rapaport Committed by Oded Gabbay

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: default avatarDan Rapaport <drapaport@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 78d50308
...@@ -949,6 +949,7 @@ struct hl_cs_in { ...@@ -949,6 +949,7 @@ struct hl_cs_in {
/* Context ID - Currently not in use */ /* Context ID - Currently not in use */
__u32 ctx_id; __u32 ctx_id;
__u8 pad[4];
}; };
struct hl_cs_out { struct hl_cs_out {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment