]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_net: examine pointer types during un-producing
authorJason Wang <jasowang@redhat.com>
Fri, 9 Mar 2018 06:50:34 +0000 (14:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 17:02:59 +0000 (12:02 -0500)
commit7680f9af8f70075f9c4c6dfba510e625c02d25f5
treec0d48a1da4ce356c2ce2037ba1b4fc210abba7e6
parent5d2edd261df3dd8c9b6c6370ae502afe695bd62b
vhost_net: examine pointer types during un-producing

After commit 09fe033db732 ("tuntap: XDP transmission"), we can
actually queueing XDP pointers in the pointer ring, so we should
examine the pointer type before freeing the pointer.

Fixes: 09fe033db732 ("tuntap: XDP transmission")
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
drivers/vhost/net.c
include/linux/if_tun.h