diff options
author | Noa Osherovich <noaos@mellanox.com> | 2018-02-25 14:39:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-04 16:52:43 +0300 |
commit | 579493b9f689910b49c071d0acdec43c4f447d65 (patch) | |
tree | 8ac85b684ca8cdcc761bafe5b830235f9e49972d /arch | |
parent | 6cfb67394a42072981c2884114b3850a3cdd5b2b (diff) | |
download | linux-579493b9f689910b49c071d0acdec43c4f447d65.tar.xz |
IB/mlx5: Avoid passing an invalid QP type to firmware
[ Upstream commit e7b169f34403becd3c9fd3b6e46614ab788f2187 ]
During QP creation, the mlx5 driver translates the QP type to an
internal value which is passed on to FW. There was no check to make
sure that the translated value is valid, and -EINVAL was coerced into
the mailbox command.
Current firmware refuses this as an invalid QP type, but future/past
firmware may do something else.
Fixes: 09a7d9eca1a6c ('{net,IB}/mlx5: QP/XRCD commands via mlx5 ifc')
Reviewed-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions