]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ehca: Fix ehca_encode_hwpage_size() and alloc_fmr()
authorJoachim Fenkes <fenkes@de.ibm.com>
Tue, 16 Oct 2007 15:26:54 +0000 (17:26 +0200)
committerRoland Dreier <rolandd@cisco.com>
Thu, 18 Oct 2007 04:46:37 +0000 (21:46 -0700)
commit8c08d50d4fc52a9367c356ebbeb194c30fbc7ac8
treeeb1f102cd3a99b3f91b8923996a24f42e165543c
parent9511724da9c090da5a6dcf6c557b1cedc4f5cfd7
IB/ehca: Fix ehca_encode_hwpage_size() and alloc_fmr()

Simplify ehca_encode_hwpage_size(), fixing an infinite loop for pgsize == 0
in the process. Fix the bug in alloc_fmr() that triggered the loop.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_mrmw.c