On Mon, Jan 31, 2022 at 11:45:26AM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxx> > > 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: 00f5ce99dc6e ("mlx4: Use port management change event instead of smp_snoop") > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > Reviewed-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx4/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-rc, thanks Jason