ntb_transport: Pick an unused queue
authorThomas VanSelus <[email protected]>
Mon, 13 Feb 2017 22:46:26 +0000 (16:46 -0600)
committerJon Mason <[email protected]>
Fri, 17 Feb 2017 04:11:26 +0000 (23:11 -0500)
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 <[email protected]>
Signed-off-by: Aaron Sierra <[email protected]>
Acked-by: Allen Hubbe <[email protected]>
Fixes: fce8a7bb5 ("PCI-Express Non-Transparent Bridge Support")
Signed-off-by: Jon Mason <[email protected]>
drivers/ntb/ntb_transport.c

index 0e18adb51e4ee152f16fca86ebdcbc41509b3d7e..02ca45fdd89203f31246f552811b1264059232d6 100644 (file)
@@ -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;