From: Roland Dreier Date: Wed, 10 Oct 2007 02:59:16 +0000 (-0700) Subject: mlx4_core: Reserve the correct number of MTT segments X-Git-Tag: v2.6.24-rc1~1453^2~37 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf78237d7b0e683d172e40b1e85b26ca49a3cdba;p=pandora-kernel.git mlx4_core: Reserve the correct number of MTT segments Taking ilog2(dev->caps.reserved_mtts) to find out the order to pass to the MTT buddy allocator will do the wrong thing if reserved_mtts is ever not a power of 2. Be safe and use fls(dev->caps.reserved_mtts - 1). Signed-off-by: Roland Dreier --- Reading git-diff-tree failed