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 nil pointer dereference in driver upgrade utils #475

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

almaslennikov
Copy link
Collaborator

No description provided.

driverUpgradePolicy.WaitForCompletion = getWaitForCompletionSpec(*ofedUpgradePolicy.WaitForCompletion)
driverUpgradePolicy.DrainSpec = getDrainSpec(*ofedUpgradePolicy.DrainSpec)
if ofedUpgradePolicy.WaitForCompletion != nil {
driverUpgradePolicy.WaitForCompletion = getWaitForCompletionSpec(*ofedUpgradePolicy.WaitForCompletion)
Copy link
Collaborator

Choose a reason for hiding this comment

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

a good improvement is to pass by reference and not copy on stack for both getWait... and getDrain...
but not related to this PR.

@adrianchiris adrianchiris merged commit b0dae2e into Mellanox:master Apr 3, 2023
@e0ne e0ne mentioned this pull request Apr 18, 2023
29 tasks
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.

4 participants