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]
Message-Id: <20230825184348.6870-1-zeming@nfschina.com>
Date:   Sat, 26 Aug 2023 02:43:48 +0800
From:   Li zeming <zeming@...china.com>
To:     keescook@...omium.org, luto@...capital.net, wad@...omium.org
Cc:     linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] seccomp: Remove unnecessary ‘NULL’ values from prepared

prepared is assigned first, so it does not need to initialize the 
assignment.

Signed-off-by: Li zeming <zeming@...china.com>
---
 kernel/seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index d3e584065c7f..af672e03449a 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -1838,7 +1838,7 @@ static long seccomp_set_mode_filter(unsigned int flags,
 				    const char __user *filter)
 {
 	const unsigned long seccomp_mode = SECCOMP_MODE_FILTER;
-	struct seccomp_filter *prepared = NULL;
+	struct seccomp_filter *prepared;
 	long ret = -EINVAL;
 	int listener = -1;
 	struct file *listener_f = NULL;
-- 
2.18.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ