Skip to content

dai-zephyr: fix crash in dai_reset - #6972

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
kv2019i:202301-dai-zephyr-fix
Jan 23, 2023
Merged

kv2019i merged 1 commit into
thesofproject:mainfrom
kv2019i:202301-dai-zephyr-fix

Conversation

@kv2019i

@kv2019i kv2019i commented Jan 19, 2023

Copy link
Copy Markdown
Collaborator

It is not guaranteed that 'dd->z_config' is set when dai_reset() is called. E.g. if the requested runtime parameters are not supported by the hardware, the parameter setup will not be completed. When dai_reset() is called in this state, a FW crash is hit due to NULL dereference.

Fix the issue by checking dd->z_config value before use.

Signed-off-by: Kai Vehmanen kai.vehmanen@linux.intel.com

It is not guaranteed that 'dd->z_config' is set when dai_reset() is
called. E.g. if the requested runtime parameters are not supported by
the hardware, the parameter setup will not be completed. When
dai_reset() is called in this state, a FW crash is hit due to NULL
dereference.

Fix the issue by checking dd->z_config value before use.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@dbaluta

dbaluta commented Jan 20, 2023

Copy link
Copy Markdown
Collaborator

This should be fine but it looks like there are some build failures. I guess github is troubled this days.

@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

Rerun the CI.

@kv2019i

kv2019i commented Jan 23, 2023

Copy link
Copy Markdown
Collaborator Author

SOFCI TEST

@kv2019i

kv2019i commented Jan 23, 2023

Copy link
Copy Markdown
Collaborator Author

Re-running CI once more. the DMA-CHAIN regression should be solved in upstream, so CI should now be clean for this PR.

@kv2019i

kv2019i commented Jan 23, 2023

Copy link
Copy Markdown
Collaborator Author

One failure in https://sof-ci.01.org/sofpr/PR6972/build3478/devicetest/index.html caused by open issue #6864
Rest is good, so proceeding with merge.

@kv2019i
kv2019i merged commit 7b100fc into thesofproject:main Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants