summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-04-07 09:39:01 +0000
committerRoland Dreier <rolandd@cisco.com>2010-04-07 14:18:14 -0700
commit7bd912998ec9cdbb0268138b6b51f28adf7865f4 (patch)
tree98aa27cecf06760dd4b85e2e85d51138a8b3f9c5 /drivers
parentb72c40949b0f04728f2993a1434598d3bad094ea (diff)
downloadlinux-stable-7bd912998ec9cdbb0268138b6b51f28adf7865f4.tar.gz
linux-stable-7bd912998ec9cdbb0268138b6b51f28adf7865f4.tar.bz2
linux-stable-7bd912998ec9cdbb0268138b6b51f28adf7865f4.zip
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: Dan Carpenter <error27@gmail.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/mlx4/mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c
index 8f3666b20ea4..63ec26f6b0c6 100644
--- a/drivers/infiniband/hw/mlx4/mr.c
+++ b/drivers/infiniband/hw/mlx4/mr.c
@@ -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,
size, &mfrpl->map,
GFP_KERNEL);
- if (!mfrpl->ibfrpl.page_list)
+ if (!mfrpl->mapped_page_list)
goto err_free;
WARN_ON(mfrpl->map & 0x3f);