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: <20220123233403.8482-1-colin.i.king@gmail.com>
Date:   Sun, 23 Jan 2022 23:34:03 +0000
From:   Colin Ian King <colin.i.king@...il.com>
To:     Dominik Brodowski <linux@...inikbrodowski.net>
Cc:     kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] pcmcia: rsrc_nonstatic: make static read-only array order const

The static array is order read-only so it make sense to make
it const.

Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
 drivers/pcmcia/rsrc_nonstatic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index 6b6c578b5f92..bde377655d48 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -480,7 +480,7 @@ static u_long inv_probe(struct resource_map *m, struct pcmcia_socket *s)
 static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask)
 {
 	struct resource_map *m, mm;
-	static unsigned char order[] = { 0xd0, 0xe0, 0xc0, 0xf0 };
+	static const unsigned char order[] = { 0xd0, 0xe0, 0xc0, 0xf0 };
 	unsigned long b, i, ok = 0;
 	struct socket_data *s_data = s->resource_data;
 
-- 
2.33.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ