Open lyakh opened 2 years ago
@RanderWang @marcinszkudlinski @tmleman any comment or PR ?
I will check and give fix
A further bad example of mixing up POSIX and IPC4 error codes is https://github.com/thesofproject/sof/blob/main/src/audio/base_fw.c It must be fixed.
Describe the bug Files under src/ipc/ipc4/ mostly use error codes from
enum ipc4_status
which includes 0 asIPC4_SUCCESS
and positive integer values as errors, but some code in that directory also uses negative POSIX return codes to indicate errors. Sometimes those codes are mixed. Sometimes checks likeif (ret < 0)
are performed where IPC4 errors are returned, so errors will be missed. An attempt has been made before in #5276 to fix those issues but it failed.Code examples src/ipc/ipc4/helper.c: