On Mon, Dec 12, 2022 at 11:22:40AM +0200, Kamal Heib wrote: > Make sure that the requested net_device is not already associated with > an ib_device before trying to create a new ib_device that will be > associated with the same net_device, this is needed to avoid creating > siw and rxe devices that will be associated with the same net_device. > > Fixes: 3856ec4b93c9 ("RDMA/core: Add RDMA_NLDEV_CMD_NEWLINK/DELLINK support") > Signed-off-by: Kamal Heib <kheib@xxxxxxxxxx> > --- > drivers/infiniband/core/nldev.c | 7 +++++++ > 1 file changed, 7 insertions(+) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>