diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-04-20 13:23:59 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-05-10 11:08:57 +0800 |
commit | 09abc636756b5d1f29224402181f7fd34f736c5f (patch) | |
tree | a24b8781b49f6032f1a285e6eb19fc6099c8dee8 /SecurityPkg/VariableAuthenticated | |
parent | 259d87146b07c5d95f301dfffca6f00b32d2c74b (diff) | |
download | edk2-platforms-09abc636756b5d1f29224402181f7fd34f736c5f.tar.xz |
MdeModulePkg RamDiskDxe: Fix wrong HII behavior for more than 8 RAM disks
The RamDiskDxe driver originally uses a variable-length HII varstore to
retrieve the HII checkbox status of each registered RAM disk.
However, HII does not support the variable-length varstore feature.
Therefore, only the checkbox status for the first 8 RAM disks are tracked
for the following definition of HII varstore structure considering the
alignment:
typedef struct {
UINT64 Size;
UINT8 RamDiskList[0];
} RAM_DISK_CONFIGURATION;
This commit uses the private data of each registered RAM disks to track
the HII checkbox status instead to resolve the issue.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'SecurityPkg/VariableAuthenticated')
0 files changed, 0 insertions, 0 deletions