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 /.gitattributes | |
parent | vsock/virtio: fix null-pointer dereference in virtio_transport_recv_listen() (diff) | |
download | linux-dev-4aaf596148f4b518244cf2b02fafc53ad586dd6b.tar.xz linux-dev-4aaf596148f4b518244cf2b02fafc53ad586dd6b.zip |
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 '.gitattributes')
0 files changed, 0 insertions, 0 deletions