Skip to content

Commit 16794e5

Browse files
danglin44hdeller
authored andcommitted
parisc: Remove spurious if statement from raw_copy_from_user()
Accidently introduced in commit 91428ca. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Fixes: 91428ca ("parisc: Check region is readable by user in raw_copy_from_user()") Cc: stable@vger.kernel.org # v5.12+
1 parent e5f0a69 commit 16794e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/parisc/lib/memcpy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ unsigned long raw_copy_from_user(void *dst, const void __user *src,
4141
mtsp(get_kernel_space(), SR_TEMP2);
4242

4343
/* Check region is user accessible */
44-
if (start)
4544
while (start < end) {
4645
if (!prober_user(SR_TEMP1, start)) {
4746
newlen = (start - (unsigned long) src);

0 commit comments

Comments
 (0)