diff options
author | Bryan Rosenburg <rosnbrg@us.ibm.com> | 2008-02-20 17:31:48 -0600 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-02-25 16:00:29 -0800 |
commit | 82d416fffb5e8e39e899be7075dbeeac5fb8f0c2 (patch) | |
tree | 6b09634809c71b5bbd1141413d5a324e0f4de7c4 /kernel/kexec.c | |
parent | bfa274e2436fc7ef72ef51c878083647f1cfd429 (diff) |
RDMA/cxgb3: Fix shift calc in build_phys_page_list() for 1-entry page lists
A single entry (addr 0x10001000, size 0x2000) will get converted to
page address 0x10000000 with a page size of 0x4000. The code as it
stands doesn't address the single buffer case, but in fact it allows
the subsequent single-buffer special case to be eliminated entirely.
Because the mask now includes the (page adjusted) starting and ending
addresses, the general case works for the single buffer case as well.
Signed-off-by: Bryan Rosenburg <rosnbrg@us.ibm.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions