[PATCH openEuler-1.0-LTS] IB/hfi1: Restore allocated resources on failed copyout