aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/remoteproc_elf_helpers.h
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2020-11-16 16:44:11 +0800
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-11-20 21:45:34 -0600
commit71ffb5a22b49ad1c6266aad237cf8f1f5b13fe9a (patch)
treea1f07e3e1a2df9d35aa90bd3de1ae80b98965bb7 /drivers/remoteproc/remoteproc_elf_helpers.h
parentremoteproc/mediatek: fix sparse errors on dma_alloc and dma_free (diff)
downloadlinux-dev-71ffb5a22b49ad1c6266aad237cf8f1f5b13fe9a.tar.xz
linux-dev-71ffb5a22b49ad1c6266aad237cf8f1f5b13fe9a.zip
remoteproc/mediatek: fix boundary check
It is valid if offset+length == sram_size. For example, sram_size=100, offset=99, length=1. Accessing offset 99 with length 1 is valid. Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20201116084413.3312631-2-tzungbi@google.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/remoteproc_elf_helpers.h')
0 files changed, 0 insertions, 0 deletions