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>] [day] [month] [year] [list]
Date:   Tue, 8 Jun 2021 16:20:17 +0800
From:   Zhen Lei <thunder.leizhen@...wei.com>
To:     Andrew Morton <akpm@...ux-foundation.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
CC:     Zhen Lei <thunder.leizhen@...wei.com>
Subject: [PATCH 1/1] kernel/relay.c: remove leading spaces before tabs

1) Run the following command to find and remove the leading spaces before
   tabs:
   sed -r -i 's/^[ ]+\t/\t/' kernel/relay.c
2) Manually check and correct if necessary

Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
---
 kernel/relay.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/kernel/relay.c b/kernel/relay.c
index 4a5e58be9731..b6cd0afe575f 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -378,10 +378,10 @@ static struct dentry *relay_create_buf_file(struct rchan *chan,
  */
 static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu)
 {
- 	struct rchan_buf *buf = NULL;
+	struct rchan_buf *buf = NULL;
 	struct dentry *dentry;
 
- 	if (chan->is_global)
+	if (chan->is_global)
 		return *per_cpu_ptr(chan->buf, 0);
 
 	buf = relay_create_buf(chan);
@@ -402,18 +402,18 @@ static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu)
 			goto free_buf;
 	}
 
- 	buf->cpu = cpu;
- 	__relay_reset(buf, 1);
+	buf->cpu = cpu;
+	__relay_reset(buf, 1);
 
- 	if(chan->is_global) {
+	if(chan->is_global) {
 		*per_cpu_ptr(chan->buf, 0) = buf;
- 		buf->cpu = 0;
-  	}
+		buf->cpu = 0;
+	}
 
 	return buf;
 
 free_buf:
- 	relay_destroy_buf(buf);
+	relay_destroy_buf(buf);
 	return NULL;
 }
 
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ