+11
−5
Loading
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>