Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dai_link->cpus etc used without backing storage. #3

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

rotdrop
Copy link

@rotdrop rotdrop commented Jul 29, 2020

Ok, this is for v5.5. But I believe the problem is also present in the master and other branches. Commit 37a37a6 moved to "modern style dai_link". However, for doing so adi_link->cpus etc. needs to be provided with backing storage. This is not done automatically, at least not in 5.4. Please compare KERNEL/sound/soc/generic/simple-card-utils.c, function asoc_simple_init_priv(). Without this patch module loading immediately result in NULL-pointer dereference.

@HinTak
Copy link
Owner

HinTak commented Jul 30, 2020

Thanks. I'll find time to look at this properly.

@HinTak
Copy link
Owner

HinTak commented Jul 30, 2020

I am not convinced this is completely correct, and I think it is partly the answer, or a good step towards it.

@HinTak HinTak merged commit 1d4abfa into HinTak:v5.5 Jul 30, 2020
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.

2 participants