diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-25 07:01:44 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-25 07:01:44 +0000 |
commit | 8069d49e9abf619afac16e44bf72266de57b1411 (patch) | |
tree | a282f6a89fab449d16accd48d1224c5d847a1082 /MdePkg/Library/UefiUsbLib/UsbDxeLib.c | |
parent | 2ae8963ce89f711acd773b85ca4fe7458b9b0b84 (diff) | |
download | edk2-platforms-8069d49e9abf619afac16e44bf72266de57b1411.tar.xz |
update comments and add assert for these files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4750 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiUsbLib/UsbDxeLib.c')
-rw-r--r-- | MdePkg/Library/UefiUsbLib/UsbDxeLib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c index 90b0fd3ea5..a1d61d52bf 100644 --- a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c +++ b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c @@ -527,6 +527,10 @@ UsbClearEndpointHalt ( EFI_USB_INTERFACE_DESCRIPTOR InterfaceDescriptor;
UINT8 Index;
+ if (UsbIo == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
ZeroMem (&EndpointDescriptor, sizeof (EFI_USB_ENDPOINT_DESCRIPTOR));
//
// First seach the endpoint descriptor for that endpoint addr
|