rimage: elf: validate module sections internally.

Make sure we validate all module sections against each other.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-02-21 10:40:42 +00:00 committed by Daniel Leung
parent b537522a65
commit 5f7a3a3a66
1 changed files with 0 additions and 3 deletions

View File

@ -314,9 +314,6 @@ int elf_validate_section(struct image *image, struct module *module,
for (i = 0; i < image->num_modules; i++) {
m = &image->module[i];
if (m == module)
continue;
/* for each section */
for (j = 0; j < m->hdr.e_shnum; j++) {
s = &m->section[j];