]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
Fix tracker 202216:linux runtime test issue.
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Mar 2009 09:57:10 +0000 (09:57 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Mar 2009 09:57:10 +0000 (09:57 +0000)
commit79749182129c18166cad883876b98b3b1e7ff668
tree523619e3dde3aabb7a16c4f96cf9b6bf58963bf5
parente343d4473d173147b383a00ae7cdf8555b048ee6
Fix tracker 202216:linux runtime test issue.
[Root Cause]
The root cause is that in FindVariable function, original code logic will traverse all variable stored in variable volatile/non-volatile area. If the non-variable area is full and Linux sets a new variable, the caller of GetNextVariablePtr will get the address of next memory block, but this block doesn't be reserved as RUNTIME attribute. Therefore its corresponding page translation table doesn't exist and causes linux kernel panic.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7890 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c