diff options
Diffstat (limited to 'drivers/block/rnull.rs')
-rw-r--r-- | drivers/block/rnull.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/rnull.rs b/drivers/block/rnull.rs index fd157d390f75..7b2f63c1a1c5 100644 --- a/drivers/block/rnull.rs +++ b/drivers/block/rnull.rs @@ -31,7 +31,7 @@ module! { } struct NullBlkModule { - _disk: Pin<Box<Mutex<GenDisk<NullBlkDevice>>>>, + _disk: Pin<KBox<Mutex<GenDisk<NullBlkDevice>>>>, } impl kernel::Module for NullBlkModule { @@ -46,7 +46,7 @@ impl kernel::Module for NullBlkModule { .rotational(false) .build(format_args!("rnullb{}", 0), tagset)?; - let disk = Box::pin_init(new_mutex!(disk, "nullb:disk"), flags::GFP_KERNEL)?; + let disk = KBox::pin_init(new_mutex!(disk, "nullb:disk"), flags::GFP_KERNEL)?; Ok(Self { _disk: disk }) } |