summaryrefslogtreecommitdiffstats
path: root/block/blk-pm.h
diff options
context:
space:
mode:
authorRustam Kovhaev <rkovhaev@gmail.com>2020-09-18 05:05:00 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-28 07:57:17 -0400
commit871c433bae565306cfc3a1a386bf7328bc9d31cb (patch)
tree4119e67682745c57af5cd6e1426f1312cabce2b1 /block/blk-pm.h
parent4407a797e9412afba2f7815fb19395d4b32dca4e (diff)
downloadlinux-871c433bae565306cfc3a1a386bf7328bc9d31cb.tar.gz
linux-871c433bae565306cfc3a1a386bf7328bc9d31cb.tar.bz2
linux-871c433bae565306cfc3a1a386bf7328bc9d31cb.zip
KVM: use struct_size() and flex_array_size() helpers in kvm_io_bus_unregister_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 <gustavoars@kernel.org> Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com> Message-Id: <20200918120500.954436-1-rkovhaev@gmail.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/blk-pm.h')
0 files changed, 0 insertions, 0 deletions