]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Fix user memory region creation when IOMMU present
authorBryan O'Sullivan <bos@pathscale.com>
Thu, 15 Mar 2007 21:44:46 +0000 (14:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Apr 2007 03:20:54 +0000 (20:20 -0700)
commit165c552c35052284e8ec4f7e9c027dfd33490e2c
tree7b35088520eebb8ae5ac22654d41247f36ddec5b
parent946db67fbf836af30835d610b914cdde0cf467f8
IB/ipath: Fix user memory region creation when IOMMU present

The loop which initializes the user memory region from an array of
pages was using the wrong limit for the array.  This worked OK when
dma_map_sg() returned the same number as the number of pages.  This
patch fixes the problem.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_mr.c