Re: Ubuntu Patches [17/16]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sneaking in one more patch this morning:

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

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' };
_______________________________________________
Ataraid-list mailing list
Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list

[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux