diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c index 31950a522a1c..53af9567632e 100644 --- a/drivers/infiniband/ulp/iser/iser_memory.c +++ b/drivers/infiniband/ulp/iser/iser_memory.c | |||
@@ -378,7 +378,7 @@ int iser_reg_rdma_mem(struct iscsi_iser_cmd_task *iser_ctask, | |||
378 | regd_buf = &iser_ctask->rdma_regd[cmd_dir]; | 378 | regd_buf = &iser_ctask->rdma_regd[cmd_dir]; |
379 | 379 | ||
380 | aligned_len = iser_data_buf_aligned_len(mem); | 380 | aligned_len = iser_data_buf_aligned_len(mem); |
381 | if (aligned_len != mem->size) { | 381 | if (aligned_len != mem->dma_nents) { |
382 | iser_err("rdma alignment violation %d/%d aligned\n", | 382 | iser_err("rdma alignment violation %d/%d aligned\n", |
383 | aligned_len, mem->size); | 383 | aligned_len, mem->size); |
384 | iser_data_buf_dump(mem); | 384 | iser_data_buf_dump(mem); |