From 6312c3f25334cd32e0f53a7653602e56558a4bc6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Oct 2018 11:20:20 +0200 Subject: Fix mixup between /dev/null and /dev/zero device registration. --- Kernel/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') 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(); auto dev_zero = make(); - vfs->registerCharacterDevice(1, 3, *dev_zero); + vfs->registerCharacterDevice(1, 5, *dev_zero); auto dev_null = make(); - vfs->registerCharacterDevice(1, 5, *dev_zero); + vfs->registerCharacterDevice(1, 3, *dev_null); auto dev_full = make(); vfs->registerCharacterDevice(1, 7, *dev_full); -- cgit v1.2.3