[PATCH 4.14 17/67] net/mlx4: Fix UBSAN warning of signed integer overflow