diff options
| author | Gustavo A. R. Silva <[email protected]> | 2020-07-25 20:00:20 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-07-25 07:38:20 -0600 |
| commit | 29f1d5caced9c2db96f169422bade787ff45d584 (patch) | |
| tree | 6643613d2f2c57424832af77742b92bb480dd3a7 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | 6706ad56436c9d54c9e5812aabe25186b43b4199 (diff) | |
bcache: 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.
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions