Patch "IB/hfi1: Return an error on memory allocation failure" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
IB/hfi1: Return an error on memory allocation failure
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ib-hfi1-return-an-error-on-memory-allocation-failure.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
94679061dcdddbafcf24e3bfb526e54dedcc2f2fMon Sep 17 00:00:00 2001
From: "Michael J. Ruhl" <[email protected]>
Date: Thu, 4 May 2017 05:14:28 -0700
Subject: IB/hfi1: Return an error on memory allocation failure
From: Michael J. Ruhl <[email protected]>
commit 94679061dcdddbafcf24e3bfb526e54dedcc2f2f upstream.
If the eager buffer allocation fails, it is necessary to return an error code.
--- drivers/infiniband/hw/hfi1/init.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/hfi1/init.c +1 -0
@@ -1757,6 +1757,7 @@ int hfi1_setup_eagerbufs(struct hfi1_ctx !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; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/ib-hfi1-return-an-error-on-memory-allocation-failure.patch queue-4.9/ib-hfi1-fix-a-subcontext-memory-leak.patch