]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/cxgb4: Validate the number of CQEs
authorKamal Heib <kamalheib1@gmail.com>
Sun, 8 Nov 2020 13:20:07 +0000 (15:20 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Nov 2020 20:19:46 +0000 (16:19 -0400)
commit6d8285e604e0221b67bd5db736921b7ddce37d00
tree787917ee6c253a35a6bd8156d43c31364b886be0
parenta9d2e9ae953f0ddd0327479c81a085adaa76d903
RDMA/cxgb4: Validate the number of CQEs

Before create CQ, make sure that the requested number of CQEs is in the
supported range.

Fixes: cfdda9d76436 ("RDMA/cxgb4: Add driver for Chelsio T4 RNIC")
Link: https://lore.kernel.org/r/20201108132007.67537-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/cq.c