virtio_blk: Use kmalloc_array() in init_vq()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 13 Sep 2016 09:32:22 +0000 (11:32 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 22:21:46 +0000 (00:21 +0200)
commit668866b6e8dffa5583d8694f1d8ddd89a8bee745
treeca54a952922680beec7b2a132b71a2cd4815af7b
parent3dae2c6152fbbc6224343551158b61aad585cedf
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>
drivers/block/virtio_blk.c