From: erictian Date: Mon, 20 Aug 2012 02:17:49 +0000 (+0000) Subject: IntelFrameworkModulePkg/IdeBusDxe: Add error check on the return status of invoking... X-Git-Tag: edk2-stable201903~13133 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ca89ab9ce852737d4b6e1375a18478473f37706f;p=mirror_edk2.git IntelFrameworkModulePkg/IdeBusDxe: Add error check on the return status of invoking AtaSoftReset(). Signed-off-by: Tian Feng Reviewed-by: Jeff Fan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13647 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c index a38611304f..597ada2610 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c +++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c @@ -1473,7 +1473,7 @@ ClearInterrupt ( // Reset IDE device to force it de-assert interrupt pin // Note: this will reset all devices on this IDE channel // - AtaSoftReset (IdeDev); + Status = AtaSoftReset (IdeDev); if (EFI_ERROR (Status)) { return; }