The current implementation does not check if Language or DriverName
are NULL. This causes the SCT test suite to crash.
Add a check to return EFI_INVALID_PARAMETER if any of these pointers
are NULL.
Signed-off-by: Dimitrije Pavlov <Dimitrije.Pavlov@arm.com>
Reviewed-by: Sunny Wang <sunny.wang@arm.com>
OUT CHAR16 **DriverName\r
)\r
{\r
+ if ((Language == NULL) || (DriverName == NULL)) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
if (AsciiStrCmp (Language, "en") != 0) {\r
return EFI_UNSUPPORTED;\r
}\r