diff options
Diffstat (limited to 'samples/vfio-mdev')
| -rw-r--r-- | samples/vfio-mdev/mtty.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c index 382f4797428f..ca495686b9c3 100644 --- a/samples/vfio-mdev/mtty.c +++ b/samples/vfio-mdev/mtty.c | |||
| @@ -1230,9 +1230,6 @@ static long mtty_ioctl(struct mdev_device *mdev, unsigned int cmd, | |||
| 1230 | if (ret) | 1230 | if (ret) |
| 1231 | return ret; | 1231 | return ret; |
| 1232 | 1232 | ||
| 1233 | if (info.count == -1) | ||
| 1234 | return -EINVAL; | ||
| 1235 | |||
| 1236 | if (copy_to_user((void __user *)arg, &info, minsz)) | 1233 | if (copy_to_user((void __user *)arg, &info, minsz)) |
| 1237 | return -EFAULT; | 1234 | return -EFAULT; |
| 1238 | 1235 | ||
