diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-19 05:15:23 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-19 05:15:23 +0000 |
commit | 9e70c18b1f147c0d33d7d2c7d14dd0d9ac8fb765 (patch) | |
tree | b93a8df8085ca2a74e6f5ea3d7a4b708a9528eea /MdeModulePkg | |
parent | 55d4edfbb39e200fe2caf494a5ee5a6a9707f7a0 (diff) | |
download | edk2-9e70c18b1f147c0d33d7d2c7d14dd0d9ac8fb765.zip edk2-9e70c18b1f147c0d33d7d2c7d14dd0d9ac8fb765.tar.gz edk2-9e70c18b1f147c0d33d7d2c7d14dd0d9ac8fb765.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c index b83babf..6c8d4b2 100644 --- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c +++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c @@ -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) {
|