Re: [PATCH] net/virtio: check return value when calling pthread_mutex_init

2024-12-19 Thread Stephen Hemminger
On Fri, 20 Dec 2024 09:53:26 +0800 Sunyang Wu wrote: > Add validation for the return value of the pthread_mutex_init. > > Signed-off-by: Sunyang Wu > --- > drivers/net/virtio/virtio_user/virtio_user_dev.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/n

[PATCH] net/virtio: check return value when calling pthread_mutex_init

2024-12-19 Thread Sunyang Wu
Add validation for the return value of the pthread_mutex_init. Signed-off-by: Sunyang Wu --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_us