Skip to content

Commit

Permalink
ntb_transport: Pick an unused queue
Browse files Browse the repository at this point in the history
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: fce8a7b ("PCI-Express Non-Transparent Bridge Support")
Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
Thomas VanSelus authored and jonmason committed Feb 17, 2017
1 parent 9644347 commit 8fcd095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8fcd095

Please sign in to comment.