Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: Remove spurious if statement from raw_copy_from_user()

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+

authored by

John David Anglin and committed by
Helge Deller
16794e52 e5f0a698

-1
-1
arch/parisc/lib/memcpy.c
··· 41 41 mtsp(get_kernel_space(), SR_TEMP2); 42 42 43 43 /* Check region is user accessible */ 44 - if (start) 45 44 while (start < end) { 46 45 if (!prober_user(SR_TEMP1, start)) { 47 46 newlen = (start - (unsigned long) src);