mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel: Fix KUBSAN crash with RamdiskDevice
This commit is contained in:
parent
a7ad0f14bf
commit
436ca2491d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ NonnullRefPtr<RamdiskDevice> RamdiskDevice::create(const RamdiskController& cont
|
|||
}
|
||||
|
||||
RamdiskDevice::RamdiskDevice(const RamdiskController& controller, OwnPtr<Region>&& region, int major, int minor)
|
||||
: StorageDevice(controller, major, minor, 512, m_region->size() / 512)
|
||||
: StorageDevice(controller, major, minor, 512, region->size() / 512)
|
||||
, m_region(move(region))
|
||||
{
|
||||
dmesgln("Ramdisk: Device #{} @ {}, Capacity={}", minor, m_region->vaddr(), max_addressable_block() * 512);
|
||||
|
|
Loading…
Add table
Reference in a new issue