test/vsock fix: add missing check on socket creation
authorFilippo Storniolo <f.storniolo95@gmail.com>
Fri, 3 Nov 2023 17:55:49 +0000 (18:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Nov 2023 22:27:07 +0000 (22:27 +0000)
commitbfada5a7672fea5465d81bba3d05fca6024a244e
tree18f72231b52795917779e17dc05b4ab10370d7f2
parent3a5cc90a4d1756072619fe511d07621bdef7f120
test/vsock fix: add missing check on socket creation

Add check on socket() return value in vsock_listen()
and vsock_connect()

Co-developed-by: Luigi Leonardi <luigi.leonardi@outlook.com>
Signed-off-by: Luigi Leonardi <luigi.leonardi@outlook.com>
Signed-off-by: Filippo Storniolo <f.storniolo95@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/util.c