Stefano Garzarella 039fcccaed vsock: avoid to assign transport if its initialization fails
If transport->init() fails, we can't assign the transport to the
socket, because it's not initialized correctly, and any future
calls to the transport callbacks would have an unexpected behavior.

Fixes: c0cfa2d8a788 ("vsock: add multi-transports support")
Reported-and-tested-by: syzbot+e2e5c07bf353b2f79daa@syzkaller.appspotmail.com
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-21 11:37:16 -08:00
..
2019-09-27 15:10:34 -07:00
2019-11-18 19:32:59 -08:00
2019-07-12 16:03:16 -07:00
2019-09-26 08:56:17 +02:00
2019-10-24 14:53:48 -07:00
2019-11-15 12:12:28 -08:00
2019-11-08 11:36:48 -08:00