Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338be072 authored by Quentin Lambert's avatar Quentin Lambert Committed by Martin K. Petersen
Browse files

scsi: 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.

Signed-off-by: default avatarQuentin Lambert <lambert.quentin@gmail.com>
Acked-by: default avatarVarun Prakash <varun@chelsio.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 11f7b184
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1410,7 +1410,7 @@ static int init_act_open(struct cxgbi_sock *csk)
	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);