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

fs/virtio-9p:When virtio-9p is not supported, return -ENODEV #15963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crafcat7
Copy link
Contributor

Summary

When the operating environment does not support virtio-9p and the virtio-9p server driver is not provided, -ENODEV should be returned for virtio-9p to avoid crash caused by continued execution.

Impact

-ENODEV is returned when virtio-9p create fails

Testing

This test is on my goldfish environment. When 9p is in an unsupported environment, it will return an error normally, avoiding continued execution and eventually causing the system to crash.

Summary:
  When the operating environment does not support virtio-9p and the virtio-9p server driver is not provided, -ENODEV should be returned for virtio-9p to avoid crash caused by continued execution.

Signed-off-by: chenrun1 <[email protected]>
@github-actions github-actions bot added Area: File System File System issues Size: XS The size of the change in this PR is very small labels Mar 10, 2025
@acassis acassis requested a review from lupyuen March 10, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: File System File System issues Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants