From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:37946 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbdEVT0R (ORCPT ); Mon, 22 May 2017 15:26:17 -0400 Subject: Patch "IB/hfi1: Return an error on memory allocation failure" has been added to the 4.11-stable tree To: michael.j.ruhl@intel.com, dennis.dalessandro@intel.com, dledford@redhat.com, gregkh@linuxfoundation.org, mike.marciniszyn@intel.com Cc: , From: Date: Mon, 22 May 2017 21:25:56 +0200 Message-ID: <1495481156127165@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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.11-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.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 94679061dcdddbafcf24e3bfb526e54dedcc2f2f Mon Sep 17 00:00:00 2001 From: "Michael J. Ruhl" Date: Thu, 4 May 2017 05:14:28 -0700 Subject: IB/hfi1: Return an error on memory allocation failure From: Michael J. Ruhl commit 94679061dcdddbafcf24e3bfb526e54dedcc2f2f upstream. If the eager buffer allocation fails, it is necessary to return an error code. Reviewed-by: Mike Marciniszyn Signed-off-by: Michael J. Ruhl Signed-off-by: Dennis Dalessandro Signed-off-by: Doug Ledford Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/hfi1/init.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/infiniband/hw/hfi1/init.c +++ b/drivers/infiniband/hw/hfi1/init.c @@ -1758,6 +1758,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 michael.j.ruhl@intel.com are queue-4.11/ib-hfi1-return-an-error-on-memory-allocation-failure.patch queue-4.11/ib-hfi1-fix-a-subcontext-memory-leak.patch