From: Michael S. Tsirkin Date: Mon, 9 Jan 2006 21:50:57 +0000 (-0800) Subject: IB/mthca: fix page shift calculation in mthca_reg_phys_mr() X-Git-Tag: v2.6.16-rc1~172^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6627fa662e86c400284b64c13661fdf6bff05983;p=pandora-kernel.git IB/mthca: fix page shift calculation in mthca_reg_phys_mr() For all pages except possibly the last one, the byte beyond the buffer end must be page aligned. Therefore, when computing the page shift to use, OR the end addresses of the buffers as well as the start addresses into the mask we check. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed