]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix dump_command mailbox length printed
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 8 Apr 2018 11:16:48 +0000 (14:16 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 4 May 2018 19:11:51 +0000 (12:11 -0700)
commitb2636f6bfde4586c4b5649902fa97ae646deaf18
tree5a4e4d551917f4971cfa38fcbfdc52bd4fdf2209
parent377e3b87d21d5d2cc5ec768a7c56165dc8a7a937
net/mlx5: Fix dump_command mailbox length printed

Dump command mailbox length printed was correct only if data_only flag
was set. For the case that data_only flag was clear the offset to stop
printing at was wrong and so the buffer printed was too short.
Changed the print loop to stop according to number of buffers in
mailbox.

Fixes: ffaf2c1a3989 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c