From 5fe71b5f039b97075841c260df58a86feb02d731 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Fri, 5 Jun 2009 01:41:31 +0000 Subject: 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 --- MdePkg/Library/UefiScsiLib/UefiScsiLib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MdePkg') 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); -- cgit v1.2.3