aboutsummaryrefslogtreecommitdiffstats
path: root/net/psample
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-12-13 19:48:01 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-16 16:07:12 -0800
commit4aaf596148f4b518244cf2b02fafc53ad586dd6b (patch)
tree71f53483981f7cc654caa9f87234893e5746c284 /net/psample
parentvsock/virtio: fix null-pointer dereference in virtio_transport_recv_listen() (diff)
downloadlinux-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 'net/psample')
0 files changed, 0 insertions, 0 deletions