mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
parisc: Remove spurious if statement from raw_copy_from_user()
commit16794e524dupstream. Accidently introduced in commit91428ca932. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Fixes:91428ca932("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4210e5e642
commit
47f0373c39
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user