On Wed, Sep 25, 2019 at 03:33:32PM +0300, Michal Kalderon wrote: > If an iWARP driver is probed and removed while there are no ips > set for the device, it will lead to a reference count leak on > the inet device of the netdevice. > > In addition, the netdevice was accessed after already calling > netdev_put, which could lead to using the netdev after already > freed. > > Fixes: 4929116bdf72 ("RDMA/core: Add common iWARP query port") > Signed-off-by: Ariel Elior <ariel.elior@xxxxxxxxxxx> > Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxxx> > Reviewed-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx> > Reviewed-by: Kamal Heib <kamalheib1@xxxxxxxxx> > --- > drivers/infiniband/core/device.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Applied to for-rc, thanks Jason