Subject: Re: [patch] rdma: potential ERR_PTR dereference

From: Andy Grover <[email-masked]>
Date: Thu, 22 Apr 2010 10:28:31 -0700

Dan Carpenter wrote:
> In the original code, the "goto out" calls "rdma_destroy_id(cm_id);"
> That isn't needed here and would cause problems because "cm_id" is an 
> ERR_PTR.  The new code just returns directly.
> 
> Signed-off-by: Dan Carpenter <[email-masked]>

Thanks, Dan.

Acked-by: Andy Grover <[email-masked]>

-- Andy