summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
diff options
context:
space:
mode:
authorPaul Blakey <paulb@mellanox.com>2016-08-18 21:09:05 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-19 16:09:55 -0700
commit2c0f8ce1b584a4d7b8ff53140d21dfed99834940 (patch)
tree282b5df22c6f772b99a75edd074b6c18ec12d222 /drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
parent1061c90f524963a0a90e7d2f9a6bfa666458af51 (diff)
downloadlinux-2c0f8ce1b584a4d7b8ff53140d21dfed99834940.tar.gz
linux-2c0f8ce1b584a4d7b8ff53140d21dfed99834940.tar.bz2
linux-2c0f8ce1b584a4d7b8ff53140d21dfed99834940.zip
net/mlx5: Added missing check of msg length in verifying its signature
Set and verify signature calculates the signature for each of the mailbox nodes, even for those that are unused (from cache). Added a missing length check to set and verify only those which are used. While here, also moved the setting of msg's nodes token to where we already go over them. This saves a pass because checksum is disabled, and the only useful thing remaining that set signature does is setting the token. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Paul Blakey <paulb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c')
0 files changed, 0 insertions, 0 deletions