summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2025-08-05 11:35:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-19 16:33:52 +0200
commit371ccc8908b3a362563db0bf15c822c0e53a53f3 (patch)
tree6aa0e6f7ad18ae85d1f1c2aa3938546b0edfb5fe /arch
parenta75aa35e1aa164245fc6ac18286302a08536c194 (diff)
downloadlinux-371ccc8908b3a362563db0bf15c822c0e53a53f3.tar.gz
linux-371ccc8908b3a362563db0bf15c822c0e53a53f3.tar.bz2
linux-371ccc8908b3a362563db0bf15c822c0e53a53f3.zip
parisc: Remove spurious if statement from raw_copy_from_user()
commit 16794e524d310780163fdd49d0bf7fac30f8dbc8 upstream. Accidently introduced in commit 91428ca9320e. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Fixes: 91428ca9320e ("parisc: Check region is readable by user in raw_copy_from_user()") Cc: stable@vger.kernel.org # v5.12+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/lib/memcpy.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c
index 69d65ffab312..03165c82dfdb 100644
--- a/arch/parisc/lib/memcpy.c
+++ b/arch/parisc/lib/memcpy.c
@@ -41,7 +41,6 @@ unsigned long raw_copy_from_user(void *dst, const void __user *src,
mtsp(get_kernel_space(), SR_TEMP2);
/* Check region is user accessible */
- if (start)
while (start < end) {
if (!prober_user(SR_TEMP1, start)) {
newlen = (start - (unsigned long) src);