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: <1341558871-6572-1-git-send-email-commnerd@gmail.com>
Date:	Fri,  6 Jul 2012 01:14:31 -0600
From:	Michael Miller <commnerd@...il.com>
To:	axboe@...nel.dk
Cc:	viro@...iv.linux.org.uk, linux-kernel@...r.kernel.org,
	Michael Miller <commnerd@...il.com>
Subject: [PATCH] block/partitions/acorn.c: Changed string pointer declaration to array declaration for fewer asm statements

Per the KernelJanitors page, this fix will remove 2 - 3 asm calls when declaring a string.

Signed-off-by: Michael Miller <commnerd@...il.com>

---
 block/partitions/acorn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/partitions/acorn.c b/block/partitions/acorn.c
index fbeb697..bf5847e 100644
--- a/block/partitions/acorn.c
+++ b/block/partitions/acorn.c
@@ -168,7 +168,7 @@ int adfspart_check_CUMANA(struct parsed_partitions *state)
 	unsigned int start_blk = 0;
 	Sector sect;
 	unsigned char *data;
-	char *name = "CUMANA/ADFS";
+	char name[] = "CUMANA/ADFS";
 	int first = 1;
 	int slot = 1;
 
-- 
1.7.2.5

--
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