You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
IB/hfi1: Return an error on memory allocation failure
If the eager buffer allocation fails, it is necessary to return an error code. Cc: stable@vger.kernel.org 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>
This commit is contained in:
committed by
Doug Ledford
parent
9746fa439c
commit
94679061dc
@@ -1778,6 +1778,7 @@ int hfi1_setup_eagerbufs(struct hfi1_ctxtdata *rcd)
|
|||||||
!HFI1_CAP_KGET_MASK(rcd->flags, MULTI_PKT_EGR)) {
|
!HFI1_CAP_KGET_MASK(rcd->flags, MULTI_PKT_EGR)) {
|
||||||
dd_dev_err(dd, "ctxt%u: Failed to allocate eager buffers\n",
|
dd_dev_err(dd, "ctxt%u: Failed to allocate eager buffers\n",
|
||||||
rcd->ctxt);
|
rcd->ctxt);
|
||||||
|
ret = -ENOMEM;
|
||||||
goto bail_rcvegrbuf_phys;
|
goto bail_rcvegrbuf_phys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user