mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(rmmd): fix bug, raised by coverity, when zeroing manifest struct
An "Incorrect expression (SIZEOF_MISMATCH)" bug was raised by coverity on the memset for clearing the manifest structure. This patch resolves that issue. Signed-off-by: Harry Moulton <harry.moulton@arm.com> Change-Id: I40431b972fc434d2b33f597813f22126d5d4cb70
This commit is contained in:
parent
f7c091eaad
commit
83a4e8e0c6
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ int rmmd_setup(void)
|
|||
|
||||
/* Zero out and load the boot manifest at the beginning of the share area */
|
||||
manifest = (struct rmm_manifest *)shared_buf_base;
|
||||
memset((void *)manifest, 0, sizeof(manifest));
|
||||
(void)memset((void *)manifest, 0, sizeof(struct rmm_manifest));
|
||||
|
||||
rc = plat_rmmd_load_manifest(manifest);
|
||||
if (rc != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue