diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-06-03 02:17:08 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-17 09:40:31 +0200 |
commit | c73c23f347168e315d65fd3b7cffca8439724b26 (patch) | |
tree | 1fdd1a79afdaacbb7b6d376b183ee86327cebe45 /fs/f2fs/segment.c | |
parent | 128916984208d8f7ccaed6eda840c603fa112910 (diff) | |
download | linux-c73c23f347168e315d65fd3b7cffca8439724b26.tar.gz linux-c73c23f347168e315d65fd3b7cffca8439724b26.tar.bz2 linux-c73c23f347168e315d65fd3b7cffca8439724b26.zip |
media: venus: hfi_cmds: Fix packet size calculation
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>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions