From: Steve Wise Date: Mon, 21 Jan 2008 20:42:11 +0000 (-0600) Subject: RDMA/cxgb3: Fix page shift calculation in build_phys_page_list() X-Git-Tag: v2.6.25-rc1~1234^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08ca26ceec4dfbcfdbada4ad728db742ccaecd1;p=pandora-kernel.git RDMA/cxgb3: Fix page shift calculation in build_phys_page_list() The existing logic incorrectly maps this buffer list: 0: addr 0x10001000, size 0x1000 1: addr 0x10002000, size 0x1000 To this bogus page list: 0: 0x10000000 1: 0x10002000 The shift calculation must also take into account the address of the first entry masked by the page_mask as well as the last address+size rounded up to the next page size. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed