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

[13.4 stable] Add missing nil check for DPC when processing wwan status update #4463

Merged

Conversation

milan-zededa
Copy link
Contributor

DPC can be still nil when DPCManager receives the first status from the wwan microservice. Without nil check, processWwanStatus function may therefore hit the nil dereference panic.

Another small change in this commit is to avoid redundant calls to currentDPC() - dpc is already retrieved at the beginning of the function.

Signed-off-by: Milan Lenco [email protected]
(cherry picked from commit a984bcb)

DPC can be still nil when DPCManager receives the first status from
the wwan microservice. Without nil check, processWwanStatus function
may therefore hit the nil dereference panic.

Another small change in this commit is to avoid redundant calls
to currentDPC() - dpc is already retrieved at the beginning of the
function.

Signed-off-by: Milan Lenco <[email protected]>
(cherry picked from commit a984bcb)
@github-actions github-actions bot requested a review from eriknordmark December 5, 2024 18:21
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit e25c566 into lf-edge:13.4-stable Dec 7, 2024
37 of 38 checks passed
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