diff options
author | 2007-10-09 19:59:16 -0700 | |
---|---|---|
committer | 2007-10-09 19:59:16 -0700 | |
commit | cf78237d7b0e683d172e40b1e85b26ca49a3cdba (patch) | |
tree | 37ab3ac0744ef2a699649e8949260301dc570f51 /include/linux/kernel.h | |
parent | mlx4_core: Support ICM tables in coherent memory (diff) | |
download | wireguard-linux-cf78237d7b0e683d172e40b1e85b26ca49a3cdba.tar.xz wireguard-linux-cf78237d7b0e683d172e40b1e85b26ca49a3cdba.zip |
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 <rolandd@cisco.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions