Skip to content
Commit 23e258e1 authored by Alex Williamson's avatar Alex Williamson Committed by David S. Miller
Browse files

virtio_net: Cleanup command queue scatterlist usage



We were avoiding calling sg_init* on scatterlists passed
into virtnet_send_command to prevent extraneous end markers.
This caused build warnings for uninitialized variables.
Cleanup the code to create proper scatterlists.

Signed-off-by: default avatarAlex Williamson <alex.williamson@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1363d9b1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment