diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-05 01:41:31 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-05 01:41:31 +0000 |
commit | 5fe71b5f039b97075841c260df58a86feb02d731 (patch) | |
tree | d3b14d010dcc79da234f1166687932646d322d81 /MdePkg | |
parent | d7d5db96491c4c3182a76808ba5a0f09449b827f (diff) | |
download | edk2-platforms-5fe71b5f039b97075841c260df58a86feb02d731.tar.xz |
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
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/UefiScsiLib/UefiScsiLib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c index 8fcc3d157d..fa9bfd2ef5 100644 --- a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c +++ b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c @@ -692,6 +692,12 @@ ScsiReadCapacity16Command ( EFI_STATUS Status;
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 (Cdb, 16);
|