]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/hfi1: Return an error on memory allocation failure
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Thu, 4 May 2017 12:14:28 +0000 (05:14 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 May 2017 23:31:46 +0000 (19:31 -0400)
commit94679061dcdddbafcf24e3bfb526e54dedcc2f2f
treef0f523a828f66d165592f9ee107fb52e5ce4b25d
parent9746fa439c63893195c7f285728617ab874b8bbd
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>
drivers/infiniband/hw/hfi1/init.c