commit | 668866b6e8dffa5583d8694f1d8ddd89a8bee745 | [log] [tgz] |
---|---|---|
author | Markus Elfring <elfring@users.sourceforge.net> | Tue Sep 13 11:32:22 2016 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Mon Oct 31 00:21:46 2016 +0200 |
tree | ca54a952922680beec7b2a132b71a2cd4815af7b | |
parent | 3dae2c6152fbbc6224343551158b61aad585cedf [diff] |
virtio_blk: Use kmalloc_array() in init_vq() Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>