Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blk-iocost: Use struct_size() in kzalloc_node()
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]> Addresses-KSPP-ID: KSPP#83 Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information