Skip to content

Commit aee7d04

Browse files
Thomas VanSelusgregkh
authored andcommitted
ntb_transport: Pick an unused queue
commit 8fcd0950c021d7be8493280541332b924b9de962 upstream. 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: fce8a7b ("PCI-Express Non-Transparent Bridge Support") Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c6c6851 commit aee7d04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ntb/ntb_transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ ntb_transport_create_queue(void *data, struct device *client_dev,
16231623

16241624
node = dev_to_node(&ndev->dev);
16251625

1626-
free_queue = ffs(nt->qp_bitmap);
1626+
free_queue = ffs(nt->qp_bitmap_free);
16271627
if (!free_queue)
16281628
goto err;
16291629

0 commit comments

Comments
 (0)