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:
rsun3 2009-06-05 01:41:31 +00:00
parent d7d5db9649
commit 5fe71b5f03
1 changed files with 6 additions and 0 deletions

View File

@ -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);