]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/passt: Initialize "error" variable in net_passt_send() (CID 1612368)
authorLaurent Vivier <lvivier@redhat.com>
Thu, 17 Jul 2025 15:08:04 +0000 (17:08 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 21 Jul 2025 02:23:03 +0000 (10:23 +0800)
commit667ad57b7636881eb79b0b319951f3cba9bbf27e
tree73841077df98897ba7ec9fb81b52c640191b17d6
parentf74e4f2e60c3b2c6e2f13eb115478df116148fe6
net/passt: Initialize "error" variable in net_passt_send() (CID 1612368)

This was flagged by Coverity as a memory illegal access.

Initialize the pointer to NULL at declaration.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/passt.c