aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r--drivers/vhost/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index b07d96b8c0d1..8cf5aece8c84 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -1054,6 +1054,10 @@ static long vhost_net_set_owner(struct vhost_net *n)
1054 int r; 1054 int r;
1055 1055
1056 mutex_lock(&n->dev.mutex); 1056 mutex_lock(&n->dev.mutex);
1057 if (vhost_dev_has_owner(&n->dev)) {
1058 r = -EBUSY;
1059 goto out;
1060 }
1057 r = vhost_net_set_ubuf_info(n); 1061 r = vhost_net_set_ubuf_info(n);
1058 if (r) 1062 if (r)
1059 goto out; 1063 goto out;