diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 09:52:12 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-25 09:52:12 +0000 |
commit | 957fe0935329fd9dd195401e07855a2ba432d364 (patch) | |
tree | 2ebef540cdd45bbfbf5a38e33a531c9fc0059c5e /MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c | |
parent | 79d07c66d98c033883494aff19023a87d09c4045 (diff) | |
download | edk2-platforms-957fe0935329fd9dd195401e07855a2ba432d364.tar.xz |
Allocate aligned buffer to satisfy the IoAlign requirement of high level protocol.
Signed-off-by: lzeng14
Reviewed-by: erictian
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12788 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c')
-rw-r--r-- | MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c index 27d0a1c3db..0d9d066df9 100644 --- a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c +++ b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c @@ -129,7 +129,7 @@ FreeAlignedBuffer ( )
{
if (Buffer != NULL) {
- FreePages (Buffer, EFI_SIZE_TO_PAGES (BufferSize));
+ FreeAlignedPages (Buffer, EFI_SIZE_TO_PAGES (BufferSize));
}
}
|