[openib-general] [PATCH] rdma_bind_addr() leaks a cma_dev reference count

Sean Hefty mshefty at ichips.intel.com
Tue Oct 17 09:51:43 PDT 2006


Krishna Kumar2 wrote:
> Hmmm, OK, I will re-phrase this patch to reduce nesting.

Something similar to:

if (cma_any_addr...) {
	ret = rdma_translate_ip(..);
	if (ret)
		goto err1;

	mutex_lock
	ret = cma_acquire_dev
	mutex_unlock
	if (ret)
		goto err2;
}

should work fine.

- Sean




More information about the general mailing list