mirror of https://github.com/acidanthera/audk.git
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:
parent
d548f0a10c
commit
67f7e37652
|
@ -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 {
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue