From: Michael S. Tsirkin Date: Sun, 25 Mar 2007 09:17:43 +0000 (+0200) Subject: IB/mthca: Fix thinko in init_mr_table() X-Git-Tag: v2.6.21-rc6~75^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0264d8853137a9a328d9f0ed29e083dd505512cb;p=pandora-kernel.git IB/mthca: Fix thinko in init_mr_table() Commit c20e20ab ("IB/mthca: Merge MR and FMR space on 64-bit systems") swapped the number of MTTs and MPTs when initializing the MR table. As a result, we get a kernel oops when the number of MTT segments allocated exceeds 0x20000. Noted by Troy Benjegerdes , and reproduced by Dotan Barak . This fixes https://bugs.openfabrics.org/show_bug.cgi?id=490 Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed