Skip to content

Commit

Permalink
Fix component name bugs when input Controller Name is invalid
Browse files Browse the repository at this point in the history
Fix the driver binding version for platform/OEM specific drivers 

git-svn-id: https://fat-driver2.tianocore.org/svn/fat-driver2/trunk@13 65ba2f78-6c18-0410-a7b4-885970cf29fa
  • Loading branch information
qhuang8 committed Jan 19, 2007
1 parent 77be429 commit c4fbf64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions EnhancedFat/Dxe/ComponentName.c
Expand Up @@ -171,13 +171,26 @@ Routine Description:
--*/
{
EFI_STATUS Status;
//
// This is a device driver, so ChildHandle must be NULL.
//
if (ChildHandle != NULL) {
return EFI_UNSUPPORTED;
}

//
// Make sure this driver is currently managing ControllHandle
//
Status = EfiTestManagedDevice (
ControllerHandle,
gFatDriverBinding.DriverBindingHandle,
&gEfiDiskIoProtocolGuid
);
if (EFI_ERROR (Status)) {
return Status;
}

return EfiLibLookupUnicodeString (
Language,
gFatComponentName.SupportedLanguages,
Expand Down
2 changes: 1 addition & 1 deletion EnhancedFat/Dxe/Fat.c
Expand Up @@ -63,7 +63,7 @@ EFI_DRIVER_BINDING_PROTOCOL gFatDriverBinding = {
FatDriverBindingSupported,
FatDriverBindingStart,
FatDriverBindingStop,
0x10,
0xa,
NULL,
NULL
};
Expand Down

0 comments on commit c4fbf64

Please sign in to comment.