- Subject: [PATCH 11/14] Fix jmicron names again
- From: Phillip Susi <psusi@xxxxxxxxxx>
- Date: Tue, 06 Dec 2011 13:39:34 -0500
- User-agent: quilt/0.48-1
Author: Danny Wood <danwood76@xxxxxxxxx>
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' };
_______________________________________________
Ataraid-list mailing list
Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list
[Linux RAID]
[Linux IDE]
[Linux SCSI]
[Kernel]
[Linux Books]
[Linux Admin]
[GFS]
[RPM]
[Photos]
[Yosemite Photos]
[Yosemite News]
[AMD 64]