--- zzzz-none-000/linux-4.4.60/drivers/remoteproc/remoteproc_elf_loader.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/drivers/remoteproc/remoteproc_elf_loader.c 2019-07-03 09:21:34.000000000 +0000 @@ -162,7 +162,7 @@ u32 offset = phdr->p_offset; void *ptr; - if (phdr->p_type != PT_LOAD) + if ((phdr->p_type != PT_LOAD) || (memsz == 0)) continue; dev_dbg(dev, "phdr: type %d da 0x%x memsz 0x%x filesz 0x%x\n",