Re: Ubuntu Patches [17/16]

Phillip Susi <[email protected]> Sat, 19 Mar 2011 13:55:06 -0400
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
Repost: formalized the description and cleaned up stylistic errors

_______________________________________________
Ataraid-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ataraid-list
21_jmicron_namefix.patch (text/x-patch, 725 B)
From: Phillip Susi <[email protected]>
Author: Danny Wood <[email protected]>
Subject: Fix jmicron names again
Bug-Ubuntu: http://launchpad.net/bugs/576289
Last-Update: 2011-03-08
Description: Uninitialized variable prevented code from working
 as intended.
Index: b/1.0.0.rc16/lib/format/ataraid/jm.c
===================================================================
--- a/1.0.0.rc16/lib/format/ataraid/jm.c
+++ b/1.0.0.rc16/lib/format/ataraid/jm.c
@@ -25,7 +25,7 @@
 static char *
 name(struct lib_context *lc, struct raid_dev *rd, unsigned int subset)
 {
-	size_t i, len;
+	size_t i = JM_NAME_LEN - 1, len;
 	struct jm *jm = META(rd, jm);
 	char *ret, *name = (char *) jm->name;
 	char buf[JM_NAME_LEN + 1] = { '\0' };
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2E7foACgkQJ4UciIs+XuJsxACeJCht3Ca7FR/7jLF3eOYySvwa
CBQAoIfZre/4yip2Au0f44F0vrxYf3AD
=x9M4
-----END PGP SIGNATURE-----