aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2019-11-21 10:06:09 +0100
committerDavid S. Miller <[email protected]>2019-11-21 11:37:16 -0800
commit039fcccaed338b2ff6587178c1219c1ef383a1d9 (patch)
tree4818e35b1ac78089c6425093a69d32cb6e6b2f48 /lib/string_helpers.c
parentf3c9a666b28572b1a0ae691a47d9a7de4d9cefb3 (diff)
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 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions