commit | 165c552c35052284e8ec4f7e9c027dfd33490e2c | [log] [tgz] |
---|---|---|
author | Bryan O'Sullivan <bos@pathscale.com> | Thu Mar 15 14:44:46 2007 -0700 |
committer | Roland Dreier <rolandd@cisco.com> | Wed Apr 18 20:20:54 2007 -0700 |
tree | 7b35088520eebb8ae5ac22654d41247f36ddec5b | |
parent | 946db67fbf836af30835d610b914cdde0cf467f8 [diff] |
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>