Skip to content

Commit

Permalink
ncsi: Fix not releasing lock in ncsi_rcv_rsp()
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
cyrilbur-ibm authored and shenki committed Feb 2, 2016
1 parent f3f4aeb commit c43c31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ncsi/ncsi-rsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,6 @@ int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,

nr->nr_rsp = skb;
if (!nr->nr_timer_enabled) {
spin_unlock_irqrestore(&ndp->ndp_req_lock, flags);
ret = -ENOENT;
goto out;
}
Expand All @@ -1163,6 +1162,7 @@ int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,
ret = nrh->nrh_handler(nr);

out:
spin_unlock_irqrestore(&ndp->ndp_req_lock, flags);
ncsi_free_req(nr, true, false);
return ret;
}

0 comments on commit c43c31d

Please sign in to comment.