1. Add missing CloseProtocol in case RemainingDevicePath is NULL or EndOfDp

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9707 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
davidhuang 2010-01-11 05:54:01 +00:00
parent d548f0a10c
commit 67f7e37652
1 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,15 @@ SCSIBusDriverBindingSupported (
// if yes, return EFI_SUCCESS.
//
if ((RemainingDevicePath == NULL) || IsDevicePathEnd (RemainingDevicePath)) {
//
// Close protocol regardless of RemainingDevicePath validation
//
gBS->CloseProtocol (
Controller,
&gEfiExtScsiPassThruProtocolGuid,
This->DriverBindingHandle,
Controller
);
return EFI_SUCCESS;
} else {
//