summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorThomas VanSelus <tvanselus@xes-inc.com>2017-02-13 23:46:26 +0100
committerJon Mason <jdmason@kudzu.us>2017-02-17 05:11:26 +0100
commit8fcd0950c021d7be8493280541332b924b9de962 (patch)
treea6b78d724aad242a662b238c265c4e0751b38a82 /drivers/ntb/ntb_transport.c
parentntb: ntb_perf missing dmaengine_unmap_put (diff)
downloadlinux-8fcd0950c021d7be8493280541332b924b9de962.tar.xz
linux-8fcd0950c021d7be8493280541332b924b9de962.zip
ntb_transport: Pick an unused queue
Fix typo causing ntb_transport_create_queue to select the first queue every time, instead of using the next free queue. Signed-off-by: Thomas VanSelus <tvanselus@xes-inc.com> Signed-off-by: Aaron Sierra <asierra@xes-inc.com> Acked-by: Allen Hubbe <Allen.Hubbe@dell.com> Fixes: fce8a7bb5 ("PCI-Express Non-Transparent Bridge Support") Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/ntb_transport.c')
-rw-r--r--drivers/ntb/ntb_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 0e18adb51e4e..02ca45fdd892 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -1802,7 +1802,7 @@ ntb_transport_create_queue(void *data, struct device *client_dev,
node = dev_to_node(&ndev->dev);
- free_queue = ffs(nt->qp_bitmap);
+ free_queue = ffs(nt->qp_bitmap_free);
if (!free_queue)
goto err;