From c4c3a967084728e73cf89e2f3480421e4f8a4573 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 23 Nov 2017 02:26:34 +0000 Subject: [PATCH] v65c816: Fix hd driver to return correct value --- Kernel/platform-v65c816/devhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-v65c816/devhd.c b/Kernel/platform-v65c816/devhd.c index 68e74f56..0a730d89 100644 --- a/Kernel/platform-v65c816/devhd.c +++ b/Kernel/platform-v65c816/devhd.c @@ -54,7 +54,7 @@ static int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag) udata.u_block++; dptr += 512; } - return nb; + return nb << BLKSHIFT; } int hd_open(uint8_t minor, uint16_t flag) -- 2.34.1