linux/drivers/infiniband/hw/mlx4
Leon Romanovsky 63c69c93d9 RDMA/mlx4: Don't continue event handler after memory allocation failure
commit f3136c4ce7 upstream.

The failure to allocate memory during MLX4_DEV_EVENT_PORT_MGMT_CHANGE
event handler will cause skip the assignment logic, but
ib_dispatch_event() will be called anyway.

Fix it by calling to return instead of break after memory allocation
failure.

Fixes: 00f5ce99dc ("mlx4: Use port management change event instead of smp_snoop")
Link: https://lore.kernel.org/r/12a0e83f18cfad4b5f62654f141e240d04915e10.1643622264.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:34:07 +01:00
..
ah.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
alias_GUID.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
cm.c IB/mlx4: Convert rej_tmout radix-tree to XArray 2020-10-09 12:34:49 -03:00
cq.c RDMA/mlx4: Remove unused parameter udata 2021-05-20 11:52:17 -03:00
doorbell.c RDMA: Use the sg_table directly and remove the opencoded version from umem 2021-08-24 19:52:40 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
mad.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
main.c RDMA/mlx4: Don't continue event handler after memory allocation failure 2022-02-08 18:34:07 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mcg.c RDMA: Manual changes for sysfs_emit and neatening 2020-10-30 21:03:52 -03:00
mlx4_ib.h RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
mr.c RDMA: Use the sg_table directly and remove the opencoded version from umem 2021-08-24 19:52:40 -03:00
qp.c RDMA/mlx4: Return missed an error if device doesn't support steering 2021-11-18 19:16:52 +01:00
srq.c RDMA: Check srq_type during create_srq 2020-10-26 19:27:58 -03:00
sysfs.c IB/mlx4: Use port iterator and validation APIs 2021-02-02 19:25:40 -04:00