]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit12b996d16b83414fbbdde37b661cfd0a622f40cf
tree5a4e4d551917f4971cfa38fcbfdc52bd4fdf2209
parented644fab19db05902243f3ebf9e1245c4c79bebb
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: e126ba97dba9 ("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