diff options
| author | 2020-07-25 20:00:19 +0800 | |
|---|---|---|
| committer | 2020-07-25 07:38:20 -0600 | |
| commit | 6706ad56436c9d54c9e5812aabe25186b43b4199 (patch) | |
| tree | 4058a1ec78c0ac0a89bd1441df33ad9cca0e839f /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | bcache: writeback: Remove unneeded variable i (diff) | |
| download | linux-dev-6706ad56436c9d54c9e5812aabe25186b43b4199.tar.xz linux-dev-6706ad56436c9d54c9e5812aabe25186b43b4199.zip | |
bcache: movinggc: Use struct_size() helper 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 <gustavoars@kernel.org>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
