projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9746fa4
)
IB/hfi1: Return an error on memory allocation failure
author
Michael J. Ruhl
<
[email protected]
>
Thu, 4 May 2017 12:14:28 +0000
(
05:14
-0700)
committer
Doug Ledford
<
[email protected]
>
Thu, 4 May 2017 23:31:46 +0000
(19:31 -0400)
If the eager buffer allocation fails, it is necessary to return
an error code.
Cc:
[email protected]
Reviewed-by: Mike Marciniszyn <
[email protected]
>
Signed-off-by: Michael J. Ruhl <
[email protected]
>
Signed-off-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/hfi1/init.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/init.c
b/drivers/infiniband/hw/hfi1/init.c
index c573f06fb7b90434e689a0f848bea71b80421b25..b2db77626fc5437c4761a95b42ad898d1597d6e2 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/init.c
+++ b/
drivers/infiniband/hw/hfi1/init.c
@@
-1778,6
+1778,7
@@
int hfi1_setup_eagerbufs(struct hfi1_ctxtdata *rcd)
!HFI1_CAP_KGET_MASK(rcd->flags, MULTI_PKT_EGR)) {
dd_dev_err(dd, "ctxt%u: Failed to allocate eager buffers\n",
rcd->ctxt);
+ ret = -ENOMEM;
goto bail_rcvegrbuf_phys;
}