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

[REBASE && FF][202405][SPLIT]NetworkPkg/UefiPxeBcDxe: Mark the device as removed when it is unplugged #1036

Conversation

Flickdm
Copy link
Member

@Flickdm Flickdm commented Jul 12, 2024

Description

Network stack fails when USB nic is removed after
initialization. This change marks it removed but
doesn't clean up memory allocations so that other
code holding onto and using that memory doesn't
cause an exception.

This change was split off the commit:
7a38833

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Release/202405

Integration Instructions

N/A

Upstream

  • Done

@Flickdm Flickdm force-pushed the cherry-pick/release/202405/feature/unplugged-nic branch from c0b1fde to b0febe0 Compare July 12, 2024 19:11
@Flickdm Flickdm changed the title NetworkPkg/UefiPxeBcDxe: Mark the device as removed when it is unplugged [REBASE && FF][202405][SPLIT]NetworkPkg/UefiPxeBcDxe: Mark the device as removed when it is unplugged Jul 12, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 94 lines in your changes missing coverage. Please review.

Please upload report for BASE (release/202405@de0afe3). Learn more about missing BASE report.

Files Patch % Lines
NetworkPkg/UefiPxeBcDxe/PxeBcMtftp.c 0.00% 56 Missing ⚠️
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 0.00% 38 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202405   #1036   +/-   ##
================================================
  Coverage                  ?   0.55%           
================================================
  Files                     ?     165           
  Lines                     ?   71222           
  Branches                  ?    1754           
================================================
  Hits                      ?     394           
  Misses                    ?   70821           
  Partials                  ?       7           
Flag Coverage Δ
NetworkPkg 0.55% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Flickdm Flickdm marked this pull request as ready for review July 12, 2024 19:34
NetworkPkg/UefiPxeBcDxe/PxeBcMtftp.c Outdated Show resolved Hide resolved
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c Outdated Show resolved Hide resolved
NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c Show resolved Hide resolved
NetworkPkg/UefiPxeBcDxe/PxeBcMtftp.c Show resolved Hide resolved
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c Show resolved Hide resolved
@Flickdm Flickdm force-pushed the cherry-pick/release/202405/feature/unplugged-nic branch 2 times, most recently from 3238150 to 4d1c7e1 Compare July 16, 2024 19:14
@Flickdm Flickdm enabled auto-merge (rebase) July 16, 2024 19:19
Network stack fails when USB nic is removed after
initialization. This change marks it removed but
doesn't clean up memory allocations so that other
code holding onto and using that memory doesn't
cause an exception.

This change was split off the commit:
microsoft@7a38833
@Flickdm Flickdm force-pushed the cherry-pick/release/202405/feature/unplugged-nic branch from 4d1c7e1 to 44fc089 Compare July 16, 2024 20:40
@Flickdm Flickdm merged commit 6bdbfc3 into microsoft:release/202405 Jul 16, 2024
30 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.

None yet

6 participants