mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
IB/hfi1: Return an error on memory allocation failure
commit 94679061dc upstream.
If the eager buffer allocation fails, it is necessary to return
an error code.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dfb450b2b6
commit
b894ea8263
@@ -1757,6 +1757,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user