Skip to content

sns_reg fix#172

Merged
setotau merged 1 commit intoqcom-sdm660-6.18.yfrom
alexeymin/sns_reg_fix
Mar 17, 2026
Merged

sns_reg fix#172
setotau merged 1 commit intoqcom-sdm660-6.18.yfrom
alexeymin/sns_reg_fix

Conversation

@minlexx
Copy link
Copy Markdown
Member

@minlexx minlexx commented Mar 2, 2026

Potential fix for nullptr deref if no sns.reg firmware was found at all. Previously, return error code from qcom_sns_reg_probe_once() was completely ignored, now failure is properly handled.

Untested (compile tested only), hard to test with our setup where msm-firmware-loader always finds sns.reg from persist partition

@setotau setotau merged commit e815e67 into qcom-sdm660-6.18.y Mar 17, 2026
3 checks passed
@setotau setotau deleted the alexeymin/sns_reg_fix branch March 17, 2026 07:51
@setotau
Copy link
Copy Markdown

setotau commented Mar 17, 2026

cherry-picked to 6.19 branch

@minlexx
Copy link
Copy Markdown
Member Author

minlexx commented Apr 1, 2026

I was able to accidentally reproduce bug and test that this fix works on msm8974pro-samsung-klte, see more in https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8251#note_543782

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants