If the data buffer described by InDataBuffer/OutDataBuffer and InTransferLength/OutTransferLength is too big to be transferred, EFI_BAD_BUFFER_SIZE should be returned

Signed-off-by:erictian
Reviewed-by:li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12549 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2011-10-19 05:15:23 +00:00
parent 55d4edfbb3
commit 9e70c18b1f
1 changed files with 2 additions and 2 deletions

View File

@ -656,7 +656,7 @@ AhciPioTransfer (
);
if (EFI_ERROR (Status) || (DataCount != MapLength)) {
return EFI_OUT_OF_RESOURCES;
return EFI_BAD_BUFFER_SIZE;
}
//
@ -877,7 +877,7 @@ AhciDmaTransfer (
);
if (EFI_ERROR (Status) || (DataCount != MapLength)) {
return EFI_OUT_OF_RESOURCES;
return EFI_BAD_BUFFER_SIZE;
}
if (Task != NULL) {