diff options
| author | 2021-09-29 15:17:18 -0500 | |
|---|---|---|
| committer | 2021-09-30 17:27:03 -0700 | |
| commit | 129291980f4901ae68ee3ba4344bdc38cf5f800d (patch) | |
| tree | d2f1074bfe1592582b38b3757e741067eaf82b4f /net/mctp/test/utils.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
| download | wireguard-linux-129291980f4901ae68ee3ba4344bdc38cf5f800d.tar.xz wireguard-linux-129291980f4901ae68ee3ba4344bdc38cf5f800d.zip | |
net: sched: Use struct_size() helper in kvmalloc()
Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows
that, in the worst scenario, could lead to heap overflows.
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210929201718.GA342296@embeddedor
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mctp/test/utils.c')
0 files changed, 0 insertions, 0 deletions
