Re: [PATCH] libvhost-user: Handling potential memory allocation failures

2022-11-08 Thread Michael S. Tsirkin
On Tue, Nov 08, 2022 at 04:01:41PM +0800, jianchunfu wrote: > Add malloc check of virtqueue element in libvhost-user. > > Signed-off-by: jianchunfu > --- > subprojects/libvhost-user/libvhost-user.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/subprojects/libvhost-user/libvhost-u

[PATCH] libvhost-user: Handling potential memory allocation failures

2022-11-08 Thread jianchunfu
Add malloc check of virtqueue element in libvhost-user. Signed-off-by: jianchunfu --- subprojects/libvhost-user/libvhost-user.c | 4 1 file changed, 4 insertions(+) diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c index 47d2efc60f..901cd7a