Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314971
b: refs/heads/master
c: c473737
h: refs/heads/master
i:
  314969: 01eb27c
  314967: bbd3dd8
v: v3
  • Loading branch information
David S. Miller committed Jul 5, 2012
1 parent 695bf4b commit c0e43de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b399d46b317a6d0a73ad523e014ecfa4d449769
refs/heads/master: c473737765c0f72ceb5b245ada7ead798d88b4f6
5 changes: 4 additions & 1 deletion trunk/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ static int init_act_open(struct cxgbi_sock *csk)
cxgbi_sock_set_flag(csk, CTPF_HAS_ATID);
cxgbi_sock_get(csk);

n = dst_get_neighbour_noref(csk->dst);
n = dst_neigh_lookup(csk->dst, &csk->daddr.sin_addr.s_addr);
if (!n) {
pr_err("%s, can't get neighbour of csk->dst.\n", ndev->name);
goto rel_resource;
Expand Down Expand Up @@ -1182,9 +1182,12 @@ static int init_act_open(struct cxgbi_sock *csk)

cxgbi_sock_set_state(csk, CTP_ACTIVE_OPEN);
send_act_open_req(csk, skb, csk->l2t);
neigh_release(n);
return 0;

rel_resource:
if (n)
neigh_release(n);
if (skb)
__kfree_skb(skb);
return -EINVAL;
Expand Down

0 comments on commit c0e43de

Please sign in to comment.