[rds-devel] [patch] rdma: potential ERR_PTR dereference
David Miller
davem at davemloft.net
Thu Apr 22 15:57:54 PDT 2010
From: Dan Carpenter <error27 at gmail.com>
Date: Thu, 22 Apr 2010 11:55:27 +0200
> 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 <error27 at gmail.com>
Applied.
More information about the rds-devel
mailing list