Re: [PATCH] IB/srp: Fix a memory leak

2015-11-20 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] IB/srp: Fix a memory leak

2015-11-20 Thread Sagi Grimberg
On 19/11/2015 01:00, Bart Van Assche wrote: If srp_connect_ch() returns a positive value then that is considered by its caller as a connection failure but this does not result in a scsi_host_put() call and additionally causes the srp_create_target() function to return a positive value while it