mirror of https://github.com/acidanthera/audk.git
Add missing parameter check ASSERTs in ScsiReadCapacity16Command() of UefiScsiLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8471 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d7d5db9649
commit
5fe71b5f03
|
@ -692,6 +692,12 @@ ScsiReadCapacity16Command (
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT8 Cdb[16];
|
UINT8 Cdb[16];
|
||||||
|
|
||||||
|
ASSERT (SenseDataLength != NULL);
|
||||||
|
ASSERT (HostAdapterStatus != NULL);
|
||||||
|
ASSERT (TargetStatus != NULL);
|
||||||
|
ASSERT (DataLength != NULL);
|
||||||
|
ASSERT (ScsiIo != NULL);
|
||||||
|
|
||||||
ZeroMem (&CommandPacket, sizeof (EFI_SCSI_IO_SCSI_REQUEST_PACKET));
|
ZeroMem (&CommandPacket, sizeof (EFI_SCSI_IO_SCSI_REQUEST_PACKET));
|
||||||
ZeroMem (Cdb, 16);
|
ZeroMem (Cdb, 16);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue