lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 6 Aug 2008 19:33:54 +0600
From:	"Rakib Mullick" <rakib.mullick@...il.com>
To:	mingo@...hat.com
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] x86: removes extra assignment from arch/x86/kernel/ldt.c

Hello guys, this patch removes an extra assignment from "write_ldt" function.
Thanks.

Signed-off-by : Md.Rakib H. Mullick (rakib.mullick@...il.com)

--- linux-2.6.27-rc2.orig/arch/x86/kernel/ldt.c	2008-08-06
16:23:53.000000000 +0600
+++ linux-2.6.27-rc2/arch/x86/kernel/ldt.c	2008-08-06 19:18:50.984268144 +0600
@@ -191,11 +191,12 @@ static int write_ldt(void __user *ptr, u
 	error = -EINVAL;
 	if (bytecount != sizeof(ldt_info))
 		goto out;
-	error = -EFAULT;
-	if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info)))
+
+	if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info))) {
+		error = -EFAULT;
 		goto out;
+	}

-	error = -EINVAL;
 	if (ldt_info.entry_number >= LDT_ENTRIES)
 		goto out;
 	if (ldt_info.contents == 3) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ