]> Pileus Git - ~andy/linux/blobdiff - drivers/vhost/vhost.h
vhost: fix error handling in RESET_OWNER ioctl
[~andy/linux] / drivers / vhost / vhost.h
index 1627eec0ca25400d34e0c0f8a40e77a2f2a9a74c..b58f4ae82cb8e1e912f83c88eeec1e82eb950d5d 100644 (file)
@@ -136,7 +136,8 @@ struct vhost_dev {
 
 long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
 long vhost_dev_check_owner(struct vhost_dev *);
-long vhost_dev_reset_owner(struct vhost_dev *);
+struct vhost_memory *vhost_dev_reset_owner_prepare(void);
+void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);
 void vhost_dev_cleanup(struct vhost_dev *, bool locked);
 void vhost_dev_stop(struct vhost_dev *);
 long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp);