Re: Ubuntu Patches [17/16]

Phillip Susi <[email protected]> Sat, 05 Mar 2011 11:33:41 -0500
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
Sneaking in one more patch this morning:

This fixes an uninitialized local variable to correct the name
sanitizing for jmicron controllers.

_______________________________________________
Ataraid-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ataraid-list
21_jmicron_namefix.patch (text/x-patch, 450 B)
Fix jmicorn names again
--- a/1.0.0.rc16/lib/format/ataraid/jm.c	2009-09-16 23:14:02.000000000 +0100
+++ b/1.0.0.rc16/lib/format/ataraid/jm.c	2010-05-06 09:28:40.927485361 +0100
@@ -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' };