diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-20 00:38:28 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-20 00:38:28 +0000 |
commit | 179a2e9731c2d41d079bde81d624ef1667b00c44 (patch) | |
tree | 65dc59272594481e9c4d0715618522dc5f3d788f /IntelFrameworkModulePkg | |
parent | 2807acc3054147b7864f1fe51a77e33b71fd05da (diff) | |
download | edk2-platforms-179a2e9731c2d41d079bde81d624ef1667b00c44.tar.xz |
Fix a bug which leave BLOCKSIZE of BloIO produced by IsaFloppy to be zero when the driver detect no media is changed in the driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3896 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c index e2adb79f56..a2f0ca9247 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c @@ -113,7 +113,8 @@ FddIdentify ( if (Status == EFI_NO_MEDIA) {
FdcDev->BlkIo.Media->MediaPresent = FALSE;
- } else if (Status != EFI_MEDIA_CHANGED) {
+ } else if ((Status != EFI_MEDIA_CHANGED) &&
+ (Status != EFI_SUCCESS)) {
MotorOff (FdcDev);
return Status;
}
|