summaryrefslogtreecommitdiff
path: root/drivers/net/fddi
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2012-08-29 15:14:35 (GMT)
committerRoland Dreier <roland@purestorage.com>2012-09-14 00:52:02 (GMT)
commitdd03e73481564fe57655d37154f84a0af00cb449 (patch)
treebfccd072c4492919bd29c4c2cbf85847a1c21a12 /drivers/net/fddi
parentfea7a08acb13524b47711625eebea40a0ede69a0 (diff)
downloadlinux-fsl-qoriq-dd03e73481564fe57655d37154f84a0af00cb449.tar.xz
mlx4_core: Fix integer overflows so 8TBs of memory registration works
This patch adds on the fixes done in commits 89dd86db78e0 ("mlx4_core: Allow large mlx4_buddy bitmaps") and 3de819e6b642 ("mlx4_core: Fix integer overflow issues around MTT table") so that memory registration of up to 8TB (log_num_mtt=31) finally works. It fixes integer overflows in a few mlx4_table_yyy routines in icm.c by using a u64 intermediate variable, and int/uint issues that caused table indexes to become nagive by setting some variables to be u32 instead of int. These problems cause crashes when a user attempted to register > 512GB of RAM. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/fddi')
0 files changed, 0 insertions, 0 deletions