Page MenuHomeFreeBSD

hyperv: Fix Coverity issues in the Hyper-V driver
ClosedPublic

Authored by dab on Feb 12 2023, 11:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 9:27 PM
Unknown Object (File)
Fri, May 3, 9:27 PM
Unknown Object (File)
Mon, Apr 29, 12:28 AM
Unknown Object (File)
Fri, Apr 26, 7:56 PM
Unknown Object (File)
Fri, Apr 26, 6:50 PM
Unknown Object (File)
Mar 7 2024, 3:08 PM
Unknown Object (File)
Feb 10 2024, 3:32 AM
Unknown Object (File)
Feb 10 2024, 3:32 AM
Subscribers

Details

Summary

Coverity reports the use of two uninitialized variables in the hyperv
driver. Examination shows the variables can be accessed while
uninitialized in error cases. Fix both.

CID: 1365235
CID: 1365236
Obtained from: Robert Herndon <Robert.Herndon@Dell.com>
Sponsored by: Dell Technologies
MFC after: 1w

Test Plan

Changes in use at $WORK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dab requested review of this revision.Feb 12 2023, 11:21 PM

Common practice for attributing the submitter with git is:

git commit --amend --author='Robert Herndon <Robert.Herndon@Dell.com>'

This revision is now accepted and ready to land.Feb 14 2023, 2:55 PM

Common practice for attributing the submitter with git is:

git commit --amend --author='Robert Herndon <Robert.Herndon@Dell.com>'

Ah, good to know. I actually used git am to apply the patch and it annotated the commit that way. I "fixed" it to list me. I'll change it back and remember this for the future.

Does that then take the place of "Obtained from" and/or "Submitted by"?

Re-trying to approve this change. (Please ignore if redundant.)

Correct author in commit log.

This revision now requires review to proceed.Feb 14 2023, 4:51 PM
This revision is now accepted and ready to land.Feb 14 2023, 4:55 PM