diff options
author | Noa Osherovich <noaos@mellanox.com> | 2016-06-04 15:15:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-20 18:09:25 +0200 |
commit | a25be0f972d74aa4bd3efe8951eb3c66d605c650 (patch) | |
tree | 0068106bb1d5e7b3bd9264db7fc5050a1cd348c7 /lib/memweight.c | |
parent | cbbfde038e42029e4dfbb303ab5f825fd743973e (diff) | |
download | lwn-a25be0f972d74aa4bd3efe8951eb3c66d605c650.tar.gz lwn-a25be0f972d74aa4bd3efe8951eb3c66d605c650.zip |
IB/mlx5: Fix entries check in mlx5_ib_resize_cq
commit 3c4c37746c919c983e439ac6a7328cd2d48c10ed upstream.
Verify that number of entries is less than device capability.
Add an appropriate warning message for error flow.
Fixes: bde51583f49b ('IB/mlx5: Add support for resize CQ')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/memweight.c')
0 files changed, 0 insertions, 0 deletions