diff options
| author | Gustavo A. R. Silva <[email protected]> | 2020-06-19 17:25:14 +0000 |
|---|---|---|
| committer | Jon Mason <[email protected]> | 2020-08-24 14:58:06 +0000 |
| commit | b8e2c8bbdf7778c6e3c65db21ababb1dfa794282 (patch) | |
| tree | 4d6c7ae0d1e3ff9a2a1c7983b613e6c29b76289f /drivers/platform/surface/aggregator/ssh_parser.c | |
| parent | ntb: intel: Fix memleak in intel_ntb_pci_probe (diff) | |
| download | kernel-b8e2c8bbdf7778c6e3c65db21ababb1dfa794282.tar.gz kernel-b8e2c8bbdf7778c6e3c65db21ababb1dfa794282.zip | |
NTB: Use struct_size() helper in devm_kzalloc()
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes. Also, remove unnecessary
variable _struct_size_.
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]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions
