Searched refs:new_dev_set (Results 1 – 1 of 1) sorted by relevance
97 struct vfio_device_set *new_dev_set; in vfio_assign_device_set() local112 new_dev_set = kzalloc(sizeof(*new_dev_set), GFP_KERNEL); in vfio_assign_device_set()113 if (!new_dev_set) in vfio_assign_device_set()115 mutex_init(&new_dev_set->lock); in vfio_assign_device_set()116 INIT_LIST_HEAD(&new_dev_set->device_list); in vfio_assign_device_set()117 new_dev_set->set_id = set_id; in vfio_assign_device_set()120 dev_set = __xa_cmpxchg(&vfio_device_set_xa, idx, NULL, new_dev_set, in vfio_assign_device_set()123 dev_set = new_dev_set; in vfio_assign_device_set()127 kfree(new_dev_set); in vfio_assign_device_set()