Re: [PATCH] virtio-net: use g_memdup2() instead of unsafe g_memdup()

2022-04-01 Thread Eugenio Perez Martin
On Fri, Apr 1, 2022 at 12:31 PM Philippe Mathieu-Daudé wrote: > > On 1/4/22 04:31, Jason Wang wrote: > > On Fri, Apr 1, 2022 at 2:29 AM Eugenio Pérez wrote: > >> > >> Fixing that literal checkpatch.pl because it will complain when we modify > >> the file > > See https://www.mail-archive.com/qemu

Re: [PATCH] virtio-net: use g_memdup2() instead of unsafe g_memdup()

2022-04-01 Thread Philippe Mathieu-Daudé
On 1/4/22 04:31, Jason Wang wrote: On Fri, Apr 1, 2022 at 2:29 AM Eugenio Pérez wrote: Fixing that literal checkpatch.pl because it will complain when we modify the file See https://www.mail-archive.com/qemu-devel@nongnu.org/msg834178.html Signed-off-by: Eugenio Pérez Acked-by: Jason W

Re: [PATCH] virtio-net: use g_memdup2() instead of unsafe g_memdup()

2022-03-31 Thread Jason Wang
On Fri, Apr 1, 2022 at 2:29 AM Eugenio Pérez wrote: > > Fixing that literal checkpatch.pl because it will complain when we modify the > file > > Signed-off-by: Eugenio Pérez Acked-by: Jason Wang > --- > hw/net/virtio-net.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --

[PATCH] virtio-net: use g_memdup2() instead of unsafe g_memdup()

2022-03-31 Thread Eugenio Pérez
Fixing that literal checkpatch.pl because it will complain when we modify the file Signed-off-by: Eugenio Pérez --- hw/net/virtio-net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 1067e72b39..e4748a7e6c 100644 --- a/hw/ne