Skip to content

Commit

Permalink
Merge branch 'for-linus/hardening' into for-next/kspp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees Cook committed Jul 27, 2023
2 parents fdf0eaf + cdddb62 commit ae14799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/qcom/venus/hfi_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ int pkt_session_unset_buffers(struct hfi_session_release_buffer_pkt *pkt,

pkt->extradata_size = 0;
pkt->shdr.hdr.size =
struct_size((struct hfi_session_set_buffers_pkt *)0,
buffer_info, bd->num_buffers);
struct_size_t(struct hfi_session_set_buffers_pkt,
buffer_info, bd->num_buffers);
}

pkt->response_req = bd->response_required;
Expand Down
6 changes: 3 additions & 3 deletions fs/vboxsf/shfl_hostintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ struct shfl_string {

/** UTF-8 or UTF-16 string. Nul terminated. */
union {
u8 utf8[2];
u16 utf16[1];
u16 ucs2[1]; /* misnomer, use utf16. */
u8 legacy_padding[2];
DECLARE_FLEX_ARRAY(u8, utf8);
DECLARE_FLEX_ARRAY(u16, utf16);
} string;
};
VMMDEV_ASSERT_SIZE(shfl_string, 6);
Expand Down

0 comments on commit ae14799

Please sign in to comment.