Messages in this thread | | | Date | Thu, 3 Jun 2021 15:15:09 -0700 | From | Kees Cook <> | Subject | Re: [PATCH v3][venus-for-next-v5.14] media: venus: hfi_cmds: Fix packet size calculation |
| |
On Wed, Jun 02, 2021 at 07:17:08PM -0500, Gustavo A. R. Silva wrote: > Now that a one-element array was replaced with a flexible-array member > in struct hfi_sys_set_property_pkt, use the struct_size() helper to > correctly calculate the packet size. > > Fixes: 701e10b3fd9f ("media: venus: hfi_cmds.h: Replace one-element array with flexible-array member") > Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Thanks for the update!
Reviewed-by: Kees Cook <keescook@chromium.org>
-- Kees Cook
| |