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
parent 7c0557faae
commit f09ce2a6a0
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];