Message ID | 20210811151131.39138-2-galpress@amazon.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | EFA CQ notifications | expand |
On Wed, Aug 11, 2021 at 06:11:28PM +0300, Gal Pressman wrote: > Make sure to free the IRQ vectors in case the allocation doesn't return > the expected number of IRQs. > > Fixes: b7f5e880f377 ("RDMA/efa: Add the efa module") > Reviewed-by: Firas JahJah <firasj@amazon.com> > Reviewed-by: Yossi Leybovich <sleybo@amazon.com> > Signed-off-by: Gal Pressman <galpress@amazon.com> > --- > drivers/infiniband/hw/efa/efa_main.c | 1 + > 1 file changed, 1 insertion(+) Applied to for-rc, thanks Jason
diff --git a/drivers/infiniband/hw/efa/efa_main.c b/drivers/infiniband/hw/efa/efa_main.c index 997947d77de6..42f9ac3f586e 100644 --- a/drivers/infiniband/hw/efa/efa_main.c +++ b/drivers/infiniband/hw/efa/efa_main.c @@ -358,6 +358,7 @@ static int efa_enable_msix(struct efa_dev *dev) } if (irq_num != msix_vecs) { + efa_disable_msix(dev); dev_err(&dev->pdev->dev, "Allocated %d MSI-X (out of %d requested)\n", irq_num, msix_vecs);