[PATCH AUTOSEL 5.12 077/104] habanalabs/gaudi: set the correct rc in case of err