Re: [PATCH] RDMA/cma: Rollback source IP address if failing to acquire device

2019-01-09 Thread Myungho Jung
d ; Jason Gunthorpe > > Cc: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: [PATCH] RDMA/cma: Rollback source IP address if failing to acquire > > device > > > > If cma_acquire_dev_by_src_ip() returns error in addr_handler(), the device >

RE: [PATCH] RDMA/cma: Rollback source IP address if failing to acquire device

2019-01-09 Thread Parav Pandit
ect: [PATCH] RDMA/cma: Rollback source IP address if failing to acquire > device > > If cma_acquire_dev_by_src_ip() returns error in addr_handler(), the device > state changes back to RDMA_CM_ADDR_BOUND but the resolved source IP > address is still left. After that, if rdma_destroy_id()

[PATCH] RDMA/cma: Rollback source IP address if failing to acquire device

2019-01-03 Thread Myungho Jung
If cma_acquire_dev_by_src_ip() returns error in addr_handler(), the device state changes back to RDMA_CM_ADDR_BOUND but the resolved source IP address is still left. After that, if rdma_destroy_id() is called after rdma_listen(), the device is freed without removed from listen_any_list in cma_cance