]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited685b7593bf0b4204a69064c9abbe26f7413def
treeca54a952922680beec7b2a132b71a2cd4815af7b
parent8b29a968d376e106896b822ae13442309b7f3190
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