]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Validate number of CQ entries on create CQ
authorSindhu Devale <sindhu.devale@intel.com>
Thu, 16 Sep 2021 19:12:20 +0000 (14:12 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Sep 2021 17:13:23 +0000 (14:13 -0300)
commit8af3b112f28432daebfacebd888a29ce65377ac4
treee4d3f0e3689f8cf5bf5f7281ba63e527b8f7e187
parent5fbf8d24db82e50830be88d47925fe82e7a0aa8e
RDMA/irdma: Validate number of CQ entries on create CQ

Add lower bound check for CQ entries at creation time.

Fixes: ec118db05224 ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20210916191222.824-3-shiraz.saleem@intel.com
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c