diff options
| author | Gustavo A. R. Silva <[email protected]> | 2020-06-19 18:10:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-06-19 20:42:08 +0000 |
| commit | 70fc6d9c14e24f9efae968589e5edf584a788e23 (patch) | |
| tree | eed24a3f30c5f37a46b443d3ae49e4983b6ee186 /net/tipc/link.c | |
| parent | cxgb4: Use struct_size() helper (diff) | |
| download | kernel-70fc6d9c14e24f9efae968589e5edf584a788e23.tar.gz kernel-70fc6d9c14e24f9efae968589e5edf584a788e23.zip | |
net: dsa: sja1105: Use struct_size() in kzalloc()
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/link.c')
0 files changed, 0 insertions, 0 deletions
