summaryrefslogtreecommitdiff
path: root/rust/kernel/pci
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-01-12 13:32:43 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-01-12 13:33:24 +0100
commit8f799b4e8cc0cf926019e40405dc3eab330ac643 (patch)
tree763878e9d6164a2bbeb2a0f8059ddb271b9f7570 /rust/kernel/pci
parente254b758976f651c47ec902d92306bd49f452ab0 (diff)
parent0f61b1860cc3f52aef9036d7235ed1f017632193 (diff)
Merge tag 'v6.19-rc5' into driver-core-next
We need the driver-core fixes in here as well to build on top of. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/pci')
-rw-r--r--rust/kernel/pci/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/pci/io.rs b/rust/kernel/pci/io.rs
index c250b7c29d2d..70e3854e7d8d 100644
--- a/rust/kernel/pci/io.rs
+++ b/rust/kernel/pci/io.rs
@@ -23,7 +23,7 @@ use core::ops::Deref;
///
/// # Invariants
///
-/// `Bar` always holds an `IoRaw` inststance that holds a valid pointer to the start of the I/O
+/// `Bar` always holds an `IoRaw` instance that holds a valid pointer to the start of the I/O
/// memory mapped PCI BAR and its size.
pub struct Bar<const SIZE: usize = 0> {
pdev: ARef<Device>,
@@ -57,7 +57,7 @@ impl<const SIZE: usize> Bar<SIZE> {
let ioptr: usize = unsafe { bindings::pci_iomap(pdev.as_raw(), num, 0) } as usize;
if ioptr == 0 {
// SAFETY:
- // `pdev` valid by the invariants of `Device`.
+ // `pdev` is valid by the invariants of `Device`.
// `num` is checked for validity by a previous call to `Device::resource_len`.
unsafe { bindings::pci_release_region(pdev.as_raw(), num) };
return Err(ENOMEM);