diff options
| author | Stefano Garzarella <[email protected]> | 2019-11-21 09:06:09 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-11-21 19:37:16 +0000 |
| commit | 039fcccaed338b2ff6587178c1219c1ef383a1d9 (patch) | |
| tree | 4818e35b1ac78089c6425093a69d32cb6e6b2f48 /net/tipc/node.c | |
| parent | net: sfp: soft status and control support (diff) | |
| download | kernel-039fcccaed338b2ff6587178c1219c1ef383a1d9.tar.gz kernel-039fcccaed338b2ff6587178c1219c1ef383a1d9.zip | |
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: [email protected]
Signed-off-by: Stefano Garzarella <[email protected]>
Reviewed-by: Jorgen Hansen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
