[PATCH 5.12 585/700] fsi: core: Fix return of error values on failures