From aa950314c706c55c0f4a32c41752bf5a19e8deb4 Mon Sep 17 00:00:00 2001 From: hfang Date: Tue, 21 Apr 2009 06:33:31 +0000 Subject: Fix K8 report bugs. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8139 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe') diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c b/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c index da1aa94094..3907e0a6c7 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c @@ -1065,6 +1065,11 @@ IsaIoMap_FullSupport ( if (Operation < 0 || Operation >= EfiIsaIoOperationMaximum) { return EFI_INVALID_PARAMETER; } + + if (ChannelNumber >= 8) { + return EFI_INVALID_PARAMETER; + } + // // See if this is a Slave DMA Operation // -- cgit v1.2.3