Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit 7bd91299 authored by Dan Carpenter's avatar Dan Carpenter Committed by Roland Dreier
Browse files

IB/mlx4: Check correct variable for allocation failure


The intent here is to check the "mfrpl->mapped_page_list" allocation.
We checked "mfrpl->ibfrpl.page_list" earlier.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent b72c4094
Branches
No related tags found
No related merge requests found
...@@ -238,7 +238,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device ...@@ -238,7 +238,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device
mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev, mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev,
size, &mfrpl->map, size, &mfrpl->map,
GFP_KERNEL); GFP_KERNEL);
if (!mfrpl->ibfrpl.page_list) if (!mfrpl->mapped_page_list)
goto err_free; goto err_free;
WARN_ON(mfrpl->map & 0x3f); WARN_ON(mfrpl->map & 0x3f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment