[PATCH 5.4 065/156] IB/hfi1: Restore allocated resources on failed copyout