X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Fvirtio%2Fnode.c;h=be2405bb3b963531707eddb540bdb9b5970891a0;hb=8f010843c57a258aa41880f3d49f3952bc2223f9;hp=4a2e305a22eeadc83b8786d4d681ba6358766449;hpb=d8b7decc1d6e7b0e16b4e7558ea37683c4e8db8f;p=vpp.git diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index 4a2e305a22e..be2405bb3b9 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -122,7 +122,7 @@ more: * initialized. */ b->current_data = -hdr_sz; - memset (vlib_buffer_get_current (b), 0, hdr_sz); + clib_memset (vlib_buffer_get_current (b), 0, hdr_sz); d->addr = ((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm, b) : @@ -188,7 +188,7 @@ more: * initialized. */ b->current_data = -hdr_sz; - memset (vlib_buffer_get_current (b), 0, hdr_sz); + clib_memset (vlib_buffer_get_current (b), 0, hdr_sz); d->addr = ((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm, b) :