diff options
Diffstat (limited to 'EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c')
-rw-r--r-- | EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c b/EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c index abfb328f60..1bbe1cc49b 100644 --- a/EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c +++ b/EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ComponentName.c @@ -160,7 +160,17 @@ UnixConsoleComponentNameGetControllerName ( if (ChildHandle != NULL) {
return EFI_UNSUPPORTED;
}
-
+ //
+ // Make sure this driver is currently managing ControllerHandle
+ //
+ Status = EfiTestManagedDevice (
+ ControllerHandle,
+ gUnixConsoleDriverBinding.DriverBindingHandle,
+ &gEfiUnixIoProtocolGuid
+ );
+ if (EFI_ERROR (Status)) {
+ return EFI_UNSUPPORTED;
+ }
//
// Get out context back
//
|