diff options
author | Dan Rapaport <drapaport@habana.ai> | 2022-05-30 13:11:45 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 08:09:21 +0200 |
commit | 2acd21cd00ce635adfec5a8725a0c342812bffb4 (patch) | |
tree | dcfdcf4a103cfcdf7125f54c70e1e55e01e81396 /include/uapi/misc | |
parent | habanalabs: add terminating NULL to attrs arrays (diff) | |
download | linux-2acd21cd00ce635adfec5a8725a0c342812bffb4.tar.xz linux-2acd21cd00ce635adfec5a8725a0c342812bffb4.zip |
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>
Diffstat (limited to 'include/uapi/misc')
-rw-r--r-- | include/uapi/misc/habanalabs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h index 52540d5b4fc9..6d2ccc09dcf2 100644 --- a/include/uapi/misc/habanalabs.h +++ b/include/uapi/misc/habanalabs.h @@ -949,6 +949,7 @@ struct hl_cs_in { /* Context ID - Currently not in use */ __u32 ctx_id; + __u8 pad[4]; }; struct hl_cs_out { |