Stefan Hajnoczi
2016-Oct-03 09:11 UTC
[PATCH 1/4] virtio_blk: Use kmalloc_array() in init_vq()
On Tue, Sep 13, 2016 at 1:12 PM, SF Markus Elfring <elfring at users.sourceforge.net> wrote:> From: Markus Elfring <elfring at users.sourceforge.net> > Date: Tue, 13 Sep 2016 11:32:22 +0200 > > 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 at users.sourceforge.net> > --- > drivers/block/virtio_blk.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-)Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
Maybe Matching Threads
- [PATCH 1/4] virtio_blk: Use kmalloc_array() in init_vq()
- [PATCH 3/4] virtio_blk: Delete an unnecessary initialisation in init_vq()
- [PATCH 3/4] virtio_blk: Delete an unnecessary initialisation in init_vq()
- [PATCH 2/5] GPU-DRM-nouveau: Use kmalloc_array() in gt215_link_train()
- [PATCH 3/3] virtio_ring: Use kmalloc_array() in alloc_indirect()