[PATCH 5.12 105/292] habanalabs/gaudi: set the correct rc in case of err