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: Erorr checking for PIN on release build #5891

Closed LeviYeoReum closed 1 month ago

LeviYeoReum commented 1 month ago

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 nubmer, check first other argument given to each function.

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

mergify[bot] commented 1 month ago

⚠️ The sha of the head commit of this PR conflicts with #5892. Mergify cannot evaluate rules on this PR. ⚠️