]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix integer overflow while resizing CQ
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 7 Mar 2018 13:29:09 +0000 (15:29 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 7 Mar 2018 20:23:43 +0000 (15:23 -0500)
commitaa0de36a40f446f5a21a7c1e677b98206e242edb
tree7696e6a93e1010bd05248b4b6c9bfa57189c9c21
parent6a21dfc0d0db7b7e0acedce67ca533a6eb19283c
RDMA/mlx5: Fix integer overflow while resizing CQ

The user can provide very large cqe_size which will cause to integer
overflow as it can be seen in the following UBSAN warning:

Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/cq.c