summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-26 11:20:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-26 11:25:46 +0200
commit6312c3f25334cd32e0f53a7653602e56558a4bc6 (patch)
tree75e43ef0defc5efa463e3980869f73be7139cb07 /Kernel
parentdf87dda63ca3e363913341ac8e96f9a2523b9196 (diff)
downloadserenity-6312c3f25334cd32e0f53a7653602e56558a4bc6.zip
Fix mixup between /dev/null and /dev/zero device registration.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 06593b518b..5d37ef7877 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -89,10 +89,10 @@ static void init_stage2()
auto vfs = make<VirtualFileSystem>();
auto dev_zero = make<ZeroDevice>();
- vfs->registerCharacterDevice(1, 3, *dev_zero);
+ vfs->registerCharacterDevice(1, 5, *dev_zero);
auto dev_null = make<NullDevice>();
- vfs->registerCharacterDevice(1, 5, *dev_zero);
+ vfs->registerCharacterDevice(1, 3, *dev_null);
auto dev_full = make<FullDevice>();
vfs->registerCharacterDevice(1, 7, *dev_full);