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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180204052732.3538-1-devesh.pradhan1@gmail.com>
Date:   Sun,  4 Feb 2018 10:57:32 +0530
From:   devesh.pradhan1@...il.com
To:     viro@...iv.linux.org.uk
Cc:     tglx@...utronix.de, linux-kernel@...r.kernel.org,
        devesh pradhan <devesh.pradhan1@...il.com>
Subject: [PATCH 2/2] kernel: compat: fixed a trailing whitespaces code style issue

From: devesh pradhan <devesh.pradhan1@...il.com>

Fixed a coding style issue.

Signed-off-by: devesh pradhan <devesh.pradhan1@...il.com>
---
 kernel/compat.c | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/kernel/compat.c b/kernel/compat.c
index d1cee656a7ed..d40c83792ae9 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -475,10 +475,14 @@ get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat)
 	if (copy_from_user(&v, compat, sizeof(compat_sigset_t)))
 		return -EFAULT;
 	switch (_NSIG_WORDS) {
-	case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 );
-	case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 );
-	case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 );
-	case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 );
+	case 4:
+		set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32);
+	case 3:
+		set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32);
+	case 2:
+		set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32);
+	case 1:
+		set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32);
 	}
 #else
 	if (copy_from_user(set, compat, sizeof(compat_sigset_t)))
@@ -496,10 +500,14 @@ put_compat_sigset(compat_sigset_t __user *compat, const sigset_t *set,
 #ifdef __BIG_ENDIAN
 	compat_sigset_t v;
 	switch (_NSIG_WORDS) {
-	case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
-	case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
-	case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1];
-	case 1: v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0];
+	case 4:
+		v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
+	case 3:
+		v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
+	case 2:
+		v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1];
+	case 1:
+		v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0];
 	}
 	return copy_to_user(compat, &v, size) ? -EFAULT : 0;
 #else
-- 
2.14.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ