summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf_fdpic.c
diff options
context:
space:
mode:
authorSu Hui <suhui@nfschina.com>2023-11-30 11:40:18 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-12-06 16:12:49 -0800
commit73424d00dc63ba681856e06cfb0a5abbdb62e2b5 (patch)
tree12c03f17fee3fd7cc8c38942919fb3f8e9eed0c7 /fs/binfmt_elf_fdpic.c
parentd61d0ab573649789bf9eb909c89a1a193b2e3d10 (diff)
downloadlinux-stable-73424d00dc63ba681856e06cfb0a5abbdb62e2b5.tar.gz
linux-stable-73424d00dc63ba681856e06cfb0a5abbdb62e2b5.tar.bz2
linux-stable-73424d00dc63ba681856e06cfb0a5abbdb62e2b5.zip
highmem: fix a memory copy problem in memcpy_from_folio
Clang static checker complains that value stored to 'from' is never read. And memcpy_from_folio() only copy the last chunk memory from folio to destination. Use 'to += chunk' to replace 'from += chunk' to fix this typo problem. Link: https://lkml.kernel.org/r/20231130034017.1210429-1-suhui@nfschina.com Fixes: b23d03ef7af5 ("highmem: add memcpy_to_folio() and memcpy_from_folio()") Signed-off-by: Su Hui <suhui@nfschina.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Ira Weiny <ira.weiny@intel.com> Cc: Jiaqi Yan <jiaqiyan@google.com> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Peter Collingbourne <pcc@google.com> Cc: Tom Rix <trix@redhat.com> Cc: Tony Luck <tony.luck@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
0 files changed, 0 insertions, 0 deletions