linux-stable/drivers/infiniband
Michael J. Ruhl 48e0a6559d IB/hfi1: Return actual error value from program_rcvarray()
A failure of program_rcvarray() is treated inconsistently by the
calling function.  In one case the error is returned, in a second
case, the error is overwritten with EFAULT.  In both cases the
code path is doing the same thing, allocating memory for groups,
so it should be consistent.

Make the error path consistent and return the error generated by
program_rcvarray().

Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Fixes: 7e7a436ecb ("staging/hfi1: Add TID entry program function body")
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>
2018-05-09 15:53:29 -04:00
..
core Merge branch 'k.o/for-rc' into k.o/wip/dl-for-next 2018-05-09 15:48:48 -04:00
hw IB/hfi1: Return actual error value from program_rcvarray() 2018-05-09 15:53:29 -04:00
sw Merge branch 'k.o/for-rc' into k.o/wip/dl-for-next 2018-05-09 15:48:48 -04:00
ulp IB/ipoib: fix ipoib_start_xmit()'s return type 2018-04-27 14:07:30 -04:00
Kconfig IB: make INFINIBAND_ADDR_TRANS configurable 2018-04-27 11:15:44 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00