From bf5a9493fa9d7013015ac511714d4efdca23ae34 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Wed, 15 Oct 2014 04:49:04 +0000 Subject: =?UTF-8?q?AtaBusDxe:=20Fix=20ReadBlockEx=20andWriteBlockEx=20to?= =?UTF-8?q?=20still=20signal=20event=20when=20the=20BufferSize=20is=200.?= =?UTF-8?q?=20DiskIoDxe:=20Fix=20ReadDiskEx=20and=20WriteDiskEx=20to=20not?= =?UTF-8?q?=20modify=20the=20user=E2=80=99s=20buffer=20when=20the=20Buffer?= =?UTF-8?q?Size=20is=200.=20DiskIoDxe:=20Fix=20ReadDiskEx=20and=20WriteDis?= =?UTF-8?q?kEx=20hang=20issue=20when=20the=20submitted=20blockio2=20task?= =?UTF-8?q?=20is=20completed=20before=20submitting=20another=20blockio2=20?= =?UTF-8?q?task.=20DiskIoDxe:=20Fix=20FlushEx=20to=20free=20the=20flush=20?= =?UTF-8?q?task=20item=20in=20callback=20(memory=20leak=20issue).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16215 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg/Bus/Ata') diff --git a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c index b113b8d851..26783169ea 100644 --- a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c +++ b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c @@ -4,7 +4,7 @@ This file implements protocol interfaces: Driver Binding protocol, Block IO protocol and DiskInfo protocol. - Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -1072,6 +1072,10 @@ BlockIoReadWrite ( } if (BufferSize == 0) { + if ((Token != NULL) && (Token->Event != NULL)) { + Token->TransactionStatus = EFI_SUCCESS; + gBS->SignalEvent (Token->Event); + } return EFI_SUCCESS; } -- cgit v1.2.3