-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmbus_async: don't panic on empty external data (#621)
Don't `panic` when a GpaDirect packet contains a pointer to empty GPA ranges. This data is guest controlled and not a programmer error, so `panic` is not correct. Consumers of `read_external_ranges` already handle errors gracefully, so this is not a significant change for them. As a drive-by code improvement, also change some cases of `#[from]` to `#[source]` in error definitions, and add the requisite `.map_err` changes.
- Loading branch information
Showing
4 changed files
with
127 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.