aboutsummaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/rtrs
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2020-05-14 14:47:20 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-17 20:43:19 -0300
commit23bbd5818e2b0d265aa1835e66f5055f63a8fa4c (patch)
tree000bd68b0e23851776b4d8b41191603b72ae83cc /drivers/infiniband/ulp/rtrs
parentdaeee976904c0b7326eb4c033df7b28d4b726177 (diff)
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: 09f8a1486dca ("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>
Diffstat (limited to 'drivers/infiniband/ulp/rtrs')
0 files changed, 0 insertions, 0 deletions