Print this page
NEX-13218 Segfault in sun_fc library
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
@@ -821,10 +821,13 @@
memcpy(userMappings->entry[i].LUID.buffer,
mappings->entries[i].guid,
sizeof (userMappings->entry[i].LUID.buffer));
}
+ if (!zeroLength) {
+ i -= 1;
+ }
log.debug("Total mappings: %d %08x %08x",
mappings->numLuns, mappings->entries[i].osLUN, mappings->entries[i].samLUN);
// If everything is good, convert paths to sym-links
if (mappings->numLuns > 0 && !zeroLength) {