Commit 16794e52 authored by John David Anglin's avatar John David Anglin Committed by Helge Deller
Browse files

parisc: Remove spurious if statement from raw_copy_from_user()



Accidently introduced in commit 91428ca9.

Signed-off-by: default avatarJohn David Anglin <dave.anglin@bell.net>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Fixes: 91428ca9 ("parisc: Check region is readable by user in raw_copy_from_user()")
Cc: stable@vger.kernel.org # v5.12+
parent e5f0a698
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);