Comment 3 for bug 205307

Revision history for this message
jcinacio (jcinacio) wrote :

i just came across this.

the latest patch to fix the jmicron raid name issue (see https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/152818) is the cause here.

fix: (sorry for the non patch)

+++/1.0.0.rc14/lib/format/ataraid/jm.c:

 buf[i] = 0;
 while (i-- && isspace(buf[i]))
  buf[i] = 0;

+ strncpy(name, buf, JM_NAME_LEN);

 len = strlen(buf) + sizeof(HANDLER) + (jm->mode == JM_T_RAID01 ? 3 : 2);
 if ((ret = dbg_malloc(len))) {