mirror of https://github.com/acidanthera/audk.git
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:
parent
55d4edfbb3
commit
9e70c18b1f
|
@ -656,7 +656,7 @@ AhciPioTransfer (
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status) || (DataCount != MapLength)) {
|
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)) {
|
if (EFI_ERROR (Status) || (DataCount != MapLength)) {
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_BAD_BUFFER_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Task != NULL) {
|
if (Task != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue