]> Git Repo - qemu.git/commit - hw/virtio/virtio.c
virtio: pass argument by value for virtqueue_map_iovec()
authorDongli Zhang <[email protected]>
Fri, 2 Nov 2018 06:16:36 +0000 (14:16 +0800)
committerLaurent Vivier <[email protected]>
Tue, 11 Dec 2018 17:28:46 +0000 (18:28 +0100)
commite4fbf5b2454e23d3b7050b54702cd451117252d8
tree09cf129aa97d55f82e15a33497bfc18eb2478b68
parent27c6ef1b5857b1447f0a0f8da4bd7df3e1a7a637
virtio: pass argument by value for virtqueue_map_iovec()

Pass num_sg by value instead of by pointer, as num_sg is never modified in
virtqueue_map_iovec().

Signed-off-by: Dongli Zhang <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Message-Id: <1541139396[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
hw/virtio/virtio.c
This page took 0.025201 seconds and 4 git commands to generate.