chainload: Fix up drive number passed to spinup()
diff --git a/stage23/protos/chainload.c b/stage23/protos/chainload.c
index 5f89fd6d..4c38b8b1 100644
--- a/stage23/protos/chainload.c
+++ b/stage23/protos/chainload.c
@@ -104,7 +104,7 @@ void chainload(char *config) {
volume_read(p, (void *)0x7c00, 0, 512);
- spinup(drive);
+ spinup(p->drive);
}
#elif uefi == 1
