diff options
author | 2022-09-29 00:21:45 -0700 | |
---|---|---|
committer | 2022-09-30 07:55:46 -0700 | |
commit | c4418f34955440fbdebd0b00771bdd76e2cd3f63 (patch) | |
tree | 164de7a8a61e5073df3e992fa2dbc81505b9b0cd /net/lapb/lapb_subr.c | |
parent | net/mlx5e: Keep a separate MKey for striding RQ (diff) | |
download | linux-rng-c4418f34955440fbdebd0b00771bdd76e2cd3f63.tar.xz linux-rng-c4418f34955440fbdebd0b00771bdd76e2cd3f63.zip |
net/mlx5: Add MLX5_FLEXIBLE_INLEN to safely calculate cmd inlen
Some commands use a flexible array after a common header. Add a macro to
safely calculate the total input length of the command, detecting
overflows and printing errors with specific values when such overflows
happen.
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions