diff options
| author | Paolo Abeni <[email protected]> | 2019-02-07 13:13:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-09 06:32:05 +0000 |
| commit | 225d9464268599a5b4d094d02ec17808e44c7553 (patch) | |
| tree | afec17ea479f9b610d7c8ac6cf0032d7f9a234a8 /net/tipc/node.c | |
| parent | net: ipv4: use a dedicated counter for icmp_v4 redirect packets (diff) | |
| download | kernel-225d9464268599a5b4d094d02ec17808e44c7553.tar.gz kernel-225d9464268599a5b4d094d02ec17808e44c7553.zip | |
vsock: cope with memory allocation failure at socket creation time
In the unlikely event that the kmalloc call in vmci_transport_socket_init()
fails, we end-up calling vmci_transport_destruct() with a NULL vmci_trans()
and oopsing.
This change addresses the above explicitly checking for zero vmci_trans()
at destruction time.
Reported-by: Xiumei Mu <[email protected]>
Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Signed-off-by: Paolo Abeni <[email protected]>
Reviewed-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
