summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb/UsbMassStorageDxe
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-13 08:29:55 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-13 08:29:55 +0000
commit81464cf1067b6b1d26679b20104c665e902647c5 (patch)
tree1e8c1327e044dd3532cfb757c19badfddcfecc25 /MdeModulePkg/Bus/Usb/UsbMassStorageDxe
parentf8e01ca87b2cad5afb5fc9dc1af68390238e5361 (diff)
downloadedk2-platforms-81464cf1067b6b1d26679b20104c665e902647c5.tar.xz
Update for code security.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7255 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
index 0db4c14356..15fdad573d 100644
--- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
+++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
@@ -596,10 +596,10 @@ UsbMassInitMultiLun (
return EFI_SUCCESS;
ON_ERROR:
- if (UsbMass->DevicePath != NULL) {
- FreePool (UsbMass->DevicePath);
- }
if (UsbMass != NULL) {
+ if (UsbMass->DevicePath != NULL) {
+ FreePool (UsbMass->DevicePath);
+ }
FreePool (UsbMass);
}
if (UsbIo != NULL) {