virtio-devices: typo fixes

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2023-01-25 11:00:45 +01:00
committed by Rob Bradford
parent 0e8fd0bc17
commit 6725771dc3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ pub enum Error {
#[error("Not activated by the guest")]
NotActivatedByGuest,
#[error("Unknown request type: {0}")]
UnkownRequestType(u16),
UnknownRequestType(u16),
#[error("Failed adding used index: {0}")]
QueueAddUsed(virtio_queue::Error),
}
@@ -618,7 +618,7 @@ impl MemEpollHandler {
VIRTIO_MEM_REQ_UNPLUG_ALL => (self.unplug_all(), 0u16),
VIRTIO_MEM_REQ_STATE => self.state_request(r.req.addr, r.req.nb_blocks),
_ => {
return Err(Error::UnkownRequestType(r.req.req_type));
return Err(Error::UnknownRequestType(r.req.req_type));
}
};
let len = r.send_response(desc_chain.memory(), resp_type, resp_state)?;