]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_net: add a missing error return
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Sep 2018 10:01:59 +0000 (13:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2018 16:05:57 +0000 (09:05 -0700)
commitcb21c303035b2c8d58a6a34331a86ecd7c25ed24
tree4563d6d1cc6a7644ecf3557fe1f43cdcdb31aadd
parentdf2d2857aee76d8f1ac9562002857d46dc16d6ca
vhost_net: add a missing error return

We accidentally left out this error return so it leads to some use after
free bugs later on.

Fixes: 1cfc0753df06 ("vhost_net: batch submitting XDP buffers to underlayer sockets")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c