]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/efa: Free IRQ vectors on error flow
authorGal Pressman <galpress@amazon.com>
Wed, 11 Aug 2021 15:11:28 +0000 (18:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 20 Aug 2021 18:27:47 +0000 (15:27 -0300)
commitad890d667b4d8307e82e2c3eb4b2f078b5b8acc3
treea3523e7cbb4bffe5d25e1caca38ff8e0c550a536
parentca6948c026689f29d537891f0dc64d8e30b80be7
RDMA/efa: Free IRQ vectors on error flow

Make sure to free the IRQ vectors in case the allocation doesn't return
the expected number of IRQs.

Fixes: c5b8e80a4c04 ("RDMA/efa: Add the efa module")
Link: https://lore.kernel.org/r/20210811151131.39138-2-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_main.c