|
@@ -447,15 +447,12 @@ static int vmci_host_do_alloc_queuepair(struct vmci_host_dev *vmci_host_dev,
|
|
struct vmci_handle handle;
|
|
struct vmci_handle handle;
|
|
int vmci_status;
|
|
int vmci_status;
|
|
int __user *retptr;
|
|
int __user *retptr;
|
|
- u32 cid;
|
|
|
|
|
|
|
|
if (vmci_host_dev->ct_type != VMCIOBJ_CONTEXT) {
|
|
if (vmci_host_dev->ct_type != VMCIOBJ_CONTEXT) {
|
|
vmci_ioctl_err("only valid for contexts\n");
|
|
vmci_ioctl_err("only valid for contexts\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- cid = vmci_ctx_get_id(vmci_host_dev->context);
|
|
|
|
-
|
|
|
|
if (vmci_host_dev->user_version < VMCI_VERSION_NOVMVM) {
|
|
if (vmci_host_dev->user_version < VMCI_VERSION_NOVMVM) {
|
|
struct vmci_qp_alloc_info_vmvm alloc_info;
|
|
struct vmci_qp_alloc_info_vmvm alloc_info;
|
|
struct vmci_qp_alloc_info_vmvm __user *info = uptr;
|
|
struct vmci_qp_alloc_info_vmvm __user *info = uptr;
|