tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.52k stars 2.44k forks source link

ArmPlatformPkg/Driver/PL061Gpio: Error checking for pin on release build #5892

Closed LeviYeoReum closed 1 month ago

LeviYeoReum commented 1 month ago

Description

ASSERT_EFI_ERROR would be removed in release build. This means It would trigger wrong behavior when Invalid PIN number given to Get(), Set() and GetMode().

Adding error check routine for invalid pin number and before check the pin number, check first other argument given to each function.

Signed-off-by: Levi Yun yeoreum.yun@arm.com

How This Was Tested

Build with release.

Integration Instructions

N/A

LeviYeoReum commented 1 month ago

Thanks, I've fixed :)