Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: use struct_size() and flex_array_size() helpers in kvm_io_bus_un…
…register_dev() Make use of the struct_size() helper to avoid any potential type mistakes and protect against potential integer overflows Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure Suggested-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Rustam Kovhaev <[email protected]> Message-Id: <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information