linux-stable/drivers/infiniband/ulp
Kamal Heib 23bbd5818e RDMA/srpt: Fix disabling device management
Avoid disabling device management for devices that don't support
Management datagrams (MADs) by checking if the "mad_agent" pointer is
initialized before calling ib_modify_port, also fix the error flow in
srpt_refresh_port() to disable device management if
ib_register_mad_agent() fail.

Fixes: 09f8a1486d ("RDMA/srpt: Fix handling of SR-IOV and iWARP ports")
Link: https://lore.kernel.org/r/20200514114720.141139-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-05-17 20:43:19 -03:00
..
ipoib RDMA: Allow ib_client's to fail when add() is called 2020-05-06 11:57:33 -03:00
iser IB/iser: Always check sig MR before putting it to the free pool 2020-03-26 16:46:54 -03:00
isert scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout" 2020-02-14 17:13:53 -05:00
opa_vnic RDMA: Allow ib_client's to fail when add() is called 2020-05-06 11:57:33 -03:00
rtrs RDMA/rtrs: a bit of documentation 2020-05-17 18:57:15 -03:00
srp RDMA: Allow ib_client's to fail when add() is called 2020-05-06 11:57:33 -03:00
srpt RDMA/srpt: Fix disabling device management 2020-05-17 20:43:19 -03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00