diff options
author | Andrew Boyer <andrew.boyer@dell.com> | 2016-11-23 12:39:24 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-12 16:31:45 -0500 |
commit | 5407f530122aa63cf304eb0874c938b3bdb8d3fb (patch) | |
tree | 7822306da4090789484d67fdb74ae3c201b7c130 /drivers/infiniband | |
parent | 5b9ea16c5488e577b26cc198ac63550b746ce3b9 (diff) |
IB/rxe: Fix ref leak in duplicate_request()
A ref was added after the call to skb_clone().
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_resp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index a5e9ce34171b..8643797fb530 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c | |||
@@ -1145,6 +1145,7 @@ static enum resp_states duplicate_request(struct rxe_qp *qp, | |||
1145 | pkt, skb_copy); | 1145 | pkt, skb_copy); |
1146 | if (rc) { | 1146 | if (rc) { |
1147 | pr_err("Failed resending result. This flow is not handled - skb ignored\n"); | 1147 | pr_err("Failed resending result. This flow is not handled - skb ignored\n"); |
1148 | rxe_drop_ref(qp); | ||
1148 | kfree_skb(skb_copy); | 1149 | kfree_skb(skb_copy); |
1149 | rc = RESPST_CLEANUP; | 1150 | rc = RESPST_CLEANUP; |
1150 | goto out; | 1151 | goto out; |