diff options
Diffstat (limited to 'drivers/infiniband/core/uverbs_main.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index f8bc822a3cc..d44e5479965 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -752,7 +752,7 @@ static void ib_uverbs_add_one(struct ib_device *device) | |||
752 | spin_unlock(&map_lock); | 752 | spin_unlock(&map_lock); |
753 | 753 | ||
754 | uverbs_dev->ib_dev = device; | 754 | uverbs_dev->ib_dev = device; |
755 | uverbs_dev->num_comp_vectors = 1; | 755 | uverbs_dev->num_comp_vectors = device->num_comp_vectors; |
756 | 756 | ||
757 | uverbs_dev->dev = cdev_alloc(); | 757 | uverbs_dev->dev = cdev_alloc(); |
758 | if (!uverbs_dev->dev) | 758 | if (!uverbs_dev->dev) |