mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Kernel: Fix KUBSAN crash with RamdiskDevice
This commit is contained in:
parent
a7ad0f14bf
commit
436ca2491d
Notes:
sideshowbarker
2024-07-18 20:43:30 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/436ca2491d9 Pull-request: https://github.com/SerenityOS/serenity/pull/6156
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…
Reference in a new issue