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, 2 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index f82a7394756e..072cbbadbc36 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -823,14 +823,14 @@ static long vhost_net_ioctl(struct file *f, unsigned int ioctl,
823 return -EFAULT; 823 return -EFAULT;
824 return vhost_net_set_backend(n, backend.index, backend.fd); 824 return vhost_net_set_backend(n, backend.index, backend.fd);
825 case VHOST_GET_FEATURES: 825 case VHOST_GET_FEATURES:
826 features = VHOST_FEATURES; 826 features = VHOST_NET_FEATURES;
827 if (copy_to_user(featurep, &features, sizeof features)) 827 if (copy_to_user(featurep, &features, sizeof features))
828 return -EFAULT; 828 return -EFAULT;
829 return 0; 829 return 0;
830 case VHOST_SET_FEATURES: 830 case VHOST_SET_FEATURES:
831 if (copy_from_user(&features, featurep, sizeof features)) 831 if (copy_from_user(&features, featurep, sizeof features))
832 return -EFAULT; 832 return -EFAULT;
833 if (features & ~VHOST_FEATURES) 833 if (features & ~VHOST_NET_FEATURES)
834 return -EOPNOTSUPP; 834 return -EOPNOTSUPP;
835 return vhost_net_set_features(n, features); 835 return vhost_net_set_features(n, features);
836 case VHOST_RESET_OWNER: 836 case VHOST_RESET_OWNER: