diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-12-13 19:48:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-16 16:07:12 -0800 |
commit | 4aaf596148f4b518244cf2b02fafc53ad586dd6b (patch) | |
tree | 71f53483981f7cc654caa9f87234893e5746c284 /drivers/net | |
parent | df18fa14629ae3ae10f51577642113ccc8ce87d1 (diff) |
vsock/virtio: add WARN_ON check on virtio_transport_get_ops()
virtio_transport_get_ops() and virtio_transport_send_pkt_info()
can only be used on connecting/connected sockets, since a socket
assigned to a transport is required.
This patch adds a WARN_ON() on virtio_transport_get_ops() to check
this requirement, a comment and a returned error on
virtio_transport_send_pkt_info(),
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions