virtio-port: Avoid temporary buffers
Modify directly the new_wbuf->buf buffer instead of writing into a temporary buffer and then copy in the final one. This also fixes Coverity warning: | uninit_use_in_call: Using uninitialized value "message_header". Field | "message_header.data" is uninitialized when calling "memcpy". Signed-off-by:Frediano Ziglio <fziglio@redhat.com> Acked-by:
Jonathon Jongsma <jjongsma@redhat.com>
Loading
Please register or sign in to comment