diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-07-13 15:15:25 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-07-13 15:15:48 +0200 |
| commit | a00e0960d0dfe70771928a9809f78a582a25886d (patch) | |
| tree | 880520469ce87d3588d5bd0b21ae6069a32085f9 /Kernel/StorageKit | |
| parent | b6977baf35447048425111d2b1d9d4d32438919a (diff) | |
[FIX] Device I/O fields shall be set to address 0 when invalid.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/StorageKit')
| -rw-r--r-- | Kernel/StorageKit/AHCI.hpp | 4 | ||||
| -rw-r--r-- | Kernel/StorageKit/ATA.hpp | 4 | ||||
| -rw-r--r-- | Kernel/StorageKit/NVME.hpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/StorageKit/AHCI.hpp b/Kernel/StorageKit/AHCI.hpp index 6389d46f..f84e175e 100644 --- a/Kernel/StorageKit/AHCI.hpp +++ b/Kernel/StorageKit/AHCI.hpp @@ -28,6 +28,6 @@ namespace Kernel const char* Name() const override; private: - void (*fCleanup)(void); + void (*fCleanup)(void) = {nullptr}; }; -} // namespace Kernel
\ No newline at end of file +} // namespace Kernel diff --git a/Kernel/StorageKit/ATA.hpp b/Kernel/StorageKit/ATA.hpp index 374133f2..0862c56d 100644 --- a/Kernel/StorageKit/ATA.hpp +++ b/Kernel/StorageKit/ATA.hpp @@ -34,6 +34,6 @@ namespace Kernel const char* Name() const override; private: - void (*fCleanup)(void); + void (*fCleanup)(void) = { nullptr }; }; -} // namespace Kernel
\ No newline at end of file +} // namespace Kernel diff --git a/Kernel/StorageKit/NVME.hpp b/Kernel/StorageKit/NVME.hpp index 8dd32365..f1601149 100644 --- a/Kernel/StorageKit/NVME.hpp +++ b/Kernel/StorageKit/NVME.hpp @@ -31,6 +31,6 @@ namespace Kernel OwnPtr<MountpointInterface*> operator()(UInt32 dmaLow, UInt32 dmaHigh, SizeT sz); private: - void (*fCleanup)(void); + void (*fCleanup)(void) = {nullptr}; }; } // namespace Kernel |
