IB/hfi1: Restore allocated resources on failed copyout
In the Linux kernel, the following vulnerability has been resolved:
Fix a resource leak if an error occurs.