net: stream: Don't ignore EINVAL on netdev socket connection
authorStefano Brivio <sbrivio@redhat.com>
Fri, 21 Oct 2022 09:09:13 +0000 (11:09 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 28 Oct 2022 05:28:52 +0000 (13:28 +0800)
commit80d3e4779d6c5fee0402b0b48de15c3c812845a4
treec4cb3cd0850eb09543a3d8207d4c6b7873023a00
parentdaf188ff04ea86fedf447ce366af3d1025020909
net: stream: Don't ignore EINVAL on netdev socket connection

Other errors are treated as failure by net_stream_client_init(),
but if connect() returns EINVAL, we'll fail silently. Remove the
related exception.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
[lvivier: applied to net/stream.c]
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/stream.c