Re: [PATCH 2/2] net/virtio: fix fortify memcpy warning

2024-05-28 Thread Thomas Monjalon
21/05/2024 03:01, Stephen Hemminger: > If fortify is enabled, it will generate a warning if memcpy > src is NULL even if size is zero. This happens if the MP message > sync is called with no file descriptors. > > Bugzilla ID 1446 > Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter laye

[PATCH 2/2] net/virtio: fix fortify memcpy warning

2024-05-20 Thread Stephen Hemminger
If fortify is enabled, it will generate a warning if memcpy src is NULL even if size is zero. This happens if the MP message sync is called with no file descriptors. Bugzilla ID 1446 Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Signed-off-by: Stephen Hemminger --- drive