On Sat, Aug 15, 2020 at 11:45:37AM +0800, Dinghao Liu wrote: > When xa_insert() fails, obj_event needs to be freed > just like what we have done to event when xa_insert() > fails. However, current code is returning directly > and ends up leaking memory. > > Fixes: 7597385371425 ("IB/mlx5: Enable subscription for device events over DEVX") > Signed-off-by: Dinghao Liu <dinghao.liu@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/devx.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky <leonro@xxxxxxxxxx>