summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-01-28 01:05:17 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-29 15:43:03 -0500
commit692a998b908ae4c612d95d1f5f5adae03eca2b79 (patch)
treec25929f71faec4963eafa1cfbeb992bee6cd4720 /drivers/vhost/vhost.h
parentaf668b3c276d0f958a3aa46ef8ec47e2d5d333b3 (diff)
downloadlinux-692a998b908ae4c612d95d1f5f5adae03eca2b79.tar.gz
linux-692a998b908ae4c612d95d1f5f5adae03eca2b79.tar.bz2
linux-692a998b908ae4c612d95d1f5f5adae03eca2b79.zip
vhost_net: correct error handling in vhost_net_set_backend()
Currently, when vhost_init_used() fails the sock refcnt and ubufs were leaked. Correct this by calling vhost_init_used() before assign ubufs and restore the oldsock when it fails. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vhost.h')
0 files changed, 0 insertions, 0 deletions