From 562cfeec44aefdaf501ce1719dfaa0b818c73c72 Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Sun, 27 Aug 2023 16:57:38 -0400 Subject: [PATCH] x86 ide: Remove unlock in IDE_Identify when failing to select the drive. --- sys/dev/x86/ide.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/x86/ide.c b/sys/dev/x86/ide.c index d098917..e0c56a5 100644 --- a/sys/dev/x86/ide.c +++ b/sys/dev/x86/ide.c @@ -195,7 +195,6 @@ IDE_Identify(IDE *ide, int drive) status = IDEWaitForBusy(ide, true); if ((status & IDE_STATUS_ERR) != 0) { - Spinlock_Unlock(&ide->lock); Log(ide, "Error selecting drive %d\n", drive); return; }