aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2022-05-19 23:00:13 -0700
committerJakub Kicinski <[email protected]>2022-05-20 17:56:50 -0700
commiteac67d83bf2553f98cfddd42cfbcfd6f9ccfc287 (patch)
tree221d23653a39be1e2f3862ce9bb390eefbde206f /scripts/gcc-plugins/sancov_plugin.c
parent29849a486a85f7ab1f3b389db5e3d4948119bef2 (diff)
wwan: iosm: use a flexible array rather than allocate short objects
GCC array-bounds warns that ipc_coredump_get_list() under-allocates the size of struct iosm_cd_table *cd_table. This is avoidable - we just need a flexible array. Nothing calls sizeof() on struct iosm_cd_list or anything that contains it. Reviewed-by: M Chetan Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions