On Wed, Jan 13, 2021 at 03:02:14PM +0200, Leon Romanovsky wrote: > From: Neta Ostrovsky <netao@xxxxxxxxxx> > > In default_roce_mode_store(), we took a reference to cma_dev, but > didn't return it in error flow. Fix it by calling to cma_dev_put > in such flow. > > Fixes: 1c15b4f2a42f ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type") > Signed-off-by: Neta Ostrovsky <netao@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/infiniband/core/cma_configfs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied to for-rc Thanks, Jason