Skip to contentSkip to conversation

cxgb4i: Add a missing call to neigh_release

PATCH Applied Quentin Lambert 3 participants 4 messages Nov 19, 2016 – Nov 30, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgb4i: Add a missing call to neigh_release

Most error branches following the call to dst_neigh_lookup contain a call to neigh_release. This patch add these calls where they are missing.

This issue was found with Hector.

---
 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +1 -1
@@ -1410,7 +1410,7 @@ static int init_act_open(struct cxgbi_so
 	csk->atid = cxgb4_alloc_atid(lldi->tids, csk);
 	if (csk->atid < 0) {
 		pr_err("%s, NO atid available.\n", ndev->name);
-		return -EINVAL;
+		goto rel_resource_without_clip;
 	}
 	cxgbi_sock_set_flag(csk, CTPF_HAS_ATID);
 	cxgbi_sock_get(csk);
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Quentin" = Quentin Lambert <[email protected]> writes:

Quentin> Most error branches following the call to dst_neigh_lookup Quentin> contain a call to neigh_release. This patch add these calls Quentin> where they are missing.

Varun: Please review!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
maintainer Acked-by
#2 lore raw
Quoted 8 lines · Martin K. Petersen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Quentin" == Quentin Lambert <[email protected]> writes:

Quentin> Most error branches following the call to dst_neigh_lookup Quentin> contain a call to neigh_release. This patch add these calls Quentin> where they are missing.

Varun: Please review!

Looks good.

#3 lore raw
In reply to Quentin Lambert
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Quentin" = Quentin Lambert <[email protected]> writes:

Quentin> Most error branches following the call to dst_neigh_lookup Quentin> contain a call to neigh_release. This patch add these calls Quentin> where they are missing.

Applied to 4.10/scsi-queue.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering