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

shim: Don't shadow err return in createPod #1288

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Conversation

kevpar
Copy link
Member

@kevpar kevpar commented Feb 1, 2022

Correctly uses a named return value on createPod. Previously if err was
redeclared in a nested scope and then returned, defers would not see the
returned error value. In particular this prevented the UVM cleanup defer
from working properly.

Signed-off-by: Kevin Parsons kevpar@microsoft.com

Correctly uses a named return value on createPod. Previously if err was
redeclared in a nested scope and then returned, defers would not see the
returned error value. In particular this prevented the UVM cleanup defer
from working properly.

Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
@kevpar kevpar requested a review from a team as a code owner February 1, 2022 22:36
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

LGTM, going to assume CI will be happy here

@kevpar kevpar merged commit 95e0bcc into master Feb 1, 2022
@helsaawy helsaawy deleted the createpod-err-shadow branch May 23, 2022 20:32
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.

3 participants