projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8c6a7
)
iw_cxgb4: call dev_put() on l2t allocation failure
author
Steve Wise
<swise@opengridcomputing.com>
Thu, 1 Sep 2016 13:43:46 +0000
(06:43 -0700)
committer
Sagi Grimberg
<sagi@grimberg.me>
Sun, 4 Sep 2016 07:00:53 +0000
(10:00 +0300)
Reviewed-by: Sagi Grimberg <sagi@grimbrg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/infiniband/hw/cxgb4/cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/cm.c
b/drivers/infiniband/hw/cxgb4/cm.c
index
a3a6721
..
57b5bb5
100644
(file)
--- a/
drivers/infiniband/hw/cxgb4/cm.c
+++ b/
drivers/infiniband/hw/cxgb4/cm.c
@@
-2077,8
+2077,10
@@
static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
}
ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
n, pdev, rt_tos2priority(tos));
- if (!ep->l2t)
+ if (!ep->l2t) {
+ dev_put(pdev);
goto out;
+ }
ep->mtu = pdev->mtu;
ep->tx_chan = cxgb4_port_chan(pdev);
ep->smac_idx = cxgb4_tp_smt_idx(adapter_type,