staging/rdma/hfi1: fix sdma build failures to always clean up
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 3 Dec 2015 21:41:05 +0000 (16:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 22:00:17 +0000 (14:00 -0800)
commita5a9e8ccab4d24c7d9e1da8222f373688745ca6a
tree146f470812463a8c4c2596f747c5c3a22b376a9e
parente607a2213a962d2ff7ca77f6a30e72096f0b9341
staging/rdma/hfi1: fix sdma build failures to always clean up

There are holes in the sdma build support routines that do
not clean any partially built sdma descriptors after mapping or
allocate failures.

This patch corrects these issues.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/sdma.c
drivers/staging/rdma/hfi1/sdma.h