diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2013-12-17 05:00:10 +0000 |
---|---|---|
committer | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-12-17 05:00:10 +0000 |
commit | 4636295f460da20b7c1e5db1283262167193bf77 (patch) | |
tree | c8adc5a95e11b2f69c147be35591bde54aa9a3f1 | |
parent | c6cef635326906241a0856d833836f82959b11a5 (diff) | |
download | edk2-4636295f460da20b7c1e5db1283262167193bf77.zip edk2-4636295f460da20b7c1e5db1283262167193bf77.tar.gz edk2-4636295f460da20b7c1e5db1283262167193bf77.tar.bz2 |
Add the missing assignment of EFI_DISK_IO2_TOKEN::Token in FlushDiskEx() implementation. Without the assignment, system may hang sometimes.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14991 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c index f53c3d9..eb3edeb 100644 --- a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c +++ b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c @@ -1111,6 +1111,7 @@ DiskIo2FlushDiskEx ( return Status;
}
Task->Signature = DISK_IO2_FLUSH_TASK_SIGNATURE;
+ Task->Token = Token;
Status = Private->BlockIo2->FlushBlocksEx (Private->BlockIo2, &Task->BlockIo2Token);
if (EFI_ERROR (Status)) {
gBS->CloseEvent (Task->BlockIo2Token.Event);
|