RE: [PATCH 3/4] vhost: use alloca instead of vla sizeof

2024-04-06 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Thursday, 4 April 2024 19.15 > > RFC sample illustrating conversion of VLA to alloca() where > sizeof(array) was in use. > > Signed-off-by: Tyler Retzlaff > --- > lib/vhost/socket.c | 5 +++-- > 1 file changed, 3 insertions(+)

[PATCH 3/4] vhost: use alloca instead of vla sizeof

2024-04-04 Thread Tyler Retzlaff
RFC sample illustrating conversion of VLA to alloca() where sizeof(array) was in use. Signed-off-by: Tyler Retzlaff --- lib/vhost/socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index 96b3ab5..cedcfb2 100644 --- a/lib/vhos