diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2019-08-23 15:34:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-23 14:44:14 -0700 |
commit | 87cade2997c9210cfeb625957e44b865a89d0c13 (patch) | |
tree | 883b9e9eb2c9312b07c7ff4d65cf11bc084754dd /net/rds | |
parent | c7a42eb49212f93a800560662d17d5293960d3c3 (diff) | |
download | linux-87cade2997c9210cfeb625957e44b865a89d0c13.tar.gz linux-87cade2997c9210cfeb625957e44b865a89d0c13.tar.bz2 linux-87cade2997c9210cfeb625957e44b865a89d0c13.zip |
net/mlx5: Fix return code in case of hyperv wrong size read
Return code value could be non deterministic in case of wrong size read.
With this patch, if such error occurs, set rc to be -EIO.
In addition, mlx5_hv_config_common() supports reading of
HV_CONFIG_BLOCK_SIZE_MAX bytes only, fix to early return error with
bad input.
Fixes: 913d14e86657 ("net/mlx5: Add wrappers for HyperV PCIe operations")
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions